Javascript / CSS Lazy Loading
3/1/2010
Hi, I just updated my Lazy Loading script to also handle Style Sheets, so why not publish it to the public? I got the original script (written by: Bob Matsuoka) a while back from this Ajaxian article.
It did not work 100% for my needs so I did some changes:
First I created a callback function so that it adds the loaded script only after it's done (i.ethe callback)
Then I added support for lazy loading of stylesheet files.
How to use it:
var file = "myscript....
Similar articles
DotNetShoutout - Latest published stories
Lazy loading images with jQuery
Lazy loading images with jQuery Some of the articles written on this site are pretty image intensive and take up a lot of resou...
ASP.NET Weblogs
Lazy loading in Entity framework
What is lazy loading object? As per Martin Fowler, "An object that doesn't contain all of the data you need but knows how to get...
ASP.NET Daily Articles
jQuery Tabs and Lazy Loading
The following article demonstrates how to use jQuery’s Ajax functionality to load data from LINQ to SQL into jQuery’s tabs contr...