Skip to content

a simple jquery plugin to initialize dom regions on demand

Notifications You must be signed in to change notification settings

naltatis/lazydom.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

lazydom will replace the <script> 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">
  </script>
</div>

JavaScript

$('div').lazydom();

// initialzing on click instead of mouseenter
$('div').lazydom({event: 'click'});    

About

a simple jquery plugin to initialize dom regions on demand

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages