An open API service indexing awesome lists of open source software.

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

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'});