https://github.com/naltatis/lazydom.js
a simple jquery plugin to initialize dom regions on demand
https://github.com/naltatis/lazydom.js
Last synced: 2 months ago
JSON representation
a simple jquery plugin to initialize dom regions on demand
- Host: GitHub
- URL: https://github.com/naltatis/lazydom.js
- Owner: naltatis
- Created: 2011-03-03T13:12:14.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2012-03-01T14:12:24.000Z (over 14 years ago)
- Last Synced: 2026-03-29T17:26:14.280Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 93.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.mdown
Awesome Lists containing this project
README
`lazydom` will replace the `` with its content when the event is triggered.
**HTML**
<div>
<h1>hello ...</h1>
<script type="text/html">
<!-- elements/images that don't need to be rendered/loaded initially -->
<h2>... world</h2>
<img src="http://www.google.de/images/logos/ps_logo2.png">
**JavaScript**
$('div').lazydom();
// initialzing on click instead of mouseenter
$('div').lazydom({event: 'click'});