4 ms·
Just what I need to make a little one-off JavaScript app. To be more DRY, shouldn't the "Autorun JavaScript" make use of selected JavaScript libraries (i.e. jQ
by joelverhagen 14y ago
Just what I need to make a little one-off JavaScript app.
To be more DRY, shouldn't the "Autorun JavaScript" make use of selected JavaScript libraries (i.e. jQuery if possible)?
- ecesena 14y agoI agree. Moreover, html5boilerplate recommends NOT to include the /1/ query: http://html5boilerplate.com/html5boilerplate-site/built/en_US/docs/html/#the-javascript http://html5boilerplate.com/html5boilerplate-site/built/en_U...
- podperson 14y agoActually what would really be neat is if it uses an included library if one is linked (e.g. jQuery $(function(){...});) and the code shown wrapped in an anonymous function otherwise (function(){...})();