Posts related to javascript

Lazy loading for Javascript

In a previous post, I was discussing how to lazy load a Facebook widget, so that it loads only when really needed. I have put my thoughts further, and come up with a general way to lazy load any kind of JavaScript snippet. I always take for example the Facebook widgets, which are always very heavy a ...

Deferred lazy loading of Facebook widgets

If you use social widgets on your web pages, you must be aware of the extra kilobytes of data your visitors are going to load for this, and how it’s going to affect the loading time of your pages. It can be difficult to figure the weight of those widgets, but sometimes they’re worth cons ...