Archive for the ‘Projects’ Category

01/08/09
Kevin Martin

Insert Script


For anyone interested in Javascript and possibly jQuery, I created a nice little plugin that allows you to insert scripts (JS, CSS, etc…) and other data into the header whenever you want. More than likely, you will be using this to insert stuff right after the page loads. By removing your scripts and inserting them after the page finish lets your browser load it faster by loading the necessary objects first. For those thinking about the defer attribute in html script tags, IT DOESN’T WORK!!

The bad thing about defer is that you cannot use document.write in a tag that uses this. Also, not all browsers support this. It was just added to Firefox 3.1, so you could only imagine.

If you want to find the script, you can do so here.

Login




Register
Recover password