If you’re a fan of John Resig’s blog (jQuery creator), you may have caught his article on Degrading Script Tags.
He’s come up with a new enhancement for the jQuery library to make better use of your script tags.

Suppose while you’re developing you need to include a script library, and then initialise that library.
Does it annoy you that you’re forced to write this in Javascript?


    <script src="some-lib.js"></script>
    <script>
        var foo = use_some_lib();
        foo.do.stuff();
    </script>

Why can’t we just use the one script tag?
Well John has a method where you can do just that with your script tags:


    <script src="some-lib.js">
        var foo = use_some_lib();
        foo.do.stuff();
    </script>

Much cleaner and more efficient isn’t it?
To see how you can modify the jQuery library to support this feature, check out John’s article here.

You may also like

Revium’s Top 10 Web Based Charts

There are lots of different scenarios where the use of a graph is required and the level of interaction can vary. It seems every man and his digital dog these days are posting top 10 lists and I thought is about time that Revium dips its toe in this cesspool of unoriginal thought to bring you our Top 10 Web Based Charts!

Keep Reading

Revium’s Part in ANZ Rebranding

On 23rd October ANZ launched their new branding.  As part of this the release Revium was commissioned to build software tools to assist in the creation of bank publications.  If rebranding is to be successful management must ensure consistency in the presentation of the brand which includes the manner in which bank publications are produced.

Keep Reading

Newsletter sign up

Every couple of months we send out an update on what's been happening around our office and the web. Sign up and see what you think. And of course, we never spam.