Hey all, I've just released getPlugin, a plugin that aims to minimise loading/ rendering times by keeping unnecessary scripts and styles out of the DOM.
What it does is basically check whether or not a specific plugin/ script/style should be imported, and then imports it. The concept is similar to $.getScript, but it's much more flexible (and it also allows browsers to cache the external files, so that download times are even shorter). Basic syntax is : $.getPlugin(plugin,[check],[data],[callback]); As the goal of this plugin is to keep loading times as short as possible, any suggestions and modifications that help achieve that goal are more than welcome. The one issue that I encountered has to do with events and ajax requests, where events are removed from elements updated via ajax. If anyone has a fix for this or any suggestion I'm all ears. For those interested the plugin can be found at: http://plugins.jquery.com/project/getPlugin Cheers