Monthly Archives: May 2011

Turns out there is block scope in JavaScript … kinda

Block scope in JavaScript?! Yup, using an interesting hack that works in browsers that like the open web. You mean let? No, I’m not talking about JavaScript 1.7′s let statement (currently only implemented in Firefox 3.0+). I’m talking about using … Continue reading

Posted in Hacks, JavaScript | 4 Comments

2295 script tags later

What I did So, building on my “Script: not a type-ical tag” article, I tested a few more ways to inject JavaScript into webpages. 1895 more, to be exact, (and I’m not done yet). How I did it Firstly, I … Continue reading

Posted in Compatibility, Cross-browser, JavaScript, Web | 2 Comments

Script: not a type-ical tag

Problem I was talking to Paul Irish today regarding some tweaks I was doing to html5boilerplate‘s code when I hit the usual kludge you see when dealing with JavaScript in .htaccess files or <VirtualHost> directives. Something to the effect of … Continue reading

Posted in Compatibility, Cross-browser, JavaScript, Web | Tagged , , , , , , | 15 Comments