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~

html
body
head
   script src='download.js'
   script src='hello.js'
 
/head
body
    div
    /div
/body
/html

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.

summary

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

Comments

Popular posts from this blog

Project euler 169 found clue

Floyd-Warshall's algorithm