Thursday, May 22, 2014

Using LazyLoad when you feel that you website is so so slow ~

Today I introduce Lazyload library that is made in javascript

basic pattern in html looks like below~

   script src='download.js'
   script src='hello.js'

if you call this webpage, you can see the fully loaded website after fully loading script and html tags,

that is html logic sequences, first script, second script, third script so on...
second script will be called after first script.

so if the website is huge or there are many script to be loaded.
people should wait more than they expected.

This Lazyload will make webpage fater than we think.

because we can controll to call scripts dynamically.


1. dynamically loading script
2. script dependency
3. speed up when first website show

No comments:

Post a Comment