Saturday, August 30, 2008

Degrading script tags for fun and profit

Java JavaScript CSS HTML C# Ruby WebService

John Resig posted on degrading script tags and adding functionality to <script> so you can add a src attribute and a body of code that will be executed one the external script loaded error free: PLAIN TEXT JAVASCRIPT:   <script src="some-lib.js">   var foo = use_some_lib();   foo.do.stuff(); </script>   To make this all work, John shows us a jquery aware version that detects [...]

0 comments: