JS++
Posted by Sam on 21 Sep 2008 at 12:18 pm | Categories: Internets, Web development
The recent massive improvements in JavaScript performance are absolutely awesome for a number of reasons:
- When I use a Web app, it will be much faster, and more responsive
- Microsoft and Adobe should be scared, as JS may just prove to be the true open-source competitor to Silverlight and AIR.
- It will pave the way for more advanced, cross-platform Web apps.
- Hopefully, as the speed difference between old and new browsers becomes more apparent, it will speed up the switchover from the horrors of IE6. New apps will start to support IE6 less and less, as the performance hit will be unacceptable.
- It could help attempts to piggyback certain technologies that Microsoft will probably never support (such as Canvas), onto IE. Of course, this assumes that MS keeps up with the curve regarding JS performance.
And on a completely unrelated note, I found a cool page that beautifully sums up the options for IE when it comes to exploiting CSS hacks. Whilst I knew most of the hacks on the page, this inline rule was quite interesting:
style=”*background:red!important;background:white!important;background:blue;”
The first background rule applies to IE7 only, the second to all other (more advanced) browsers, and the last one to IE6 only. While inline CSS is not good for obvious reasons, I have found this hack to be quick and useful when restricted by bad design in some of our older sites.
Edit: This can also be used in external CSS files, as shown by this neat tutorial. Furthermore, it shows that we can combine the star hack (applies to IE6 and 7) with the underscore hack (applies only to IE6), to produce a more streamlined version of this style attribute:
style=”*background:red;background:white;_background:blue;”








