Sunday, December 13, 2009

More than 31 Style elements cause IE crash

Last week, I was trying to add Twitter Widget on my Webpage, it was working fine in Firefox, Chrome and Safari but in all versions of IE, it was causing crash :O

"Oh IE I love, I can write an HTML file that can crash you"

After figuring out the JavaScript of that twitter widget and some Google work, I got to know that the basic cause of IE crash is not the Twitter widget. The basic cause was that twitter widget adds a "style" HTML element dynamically, that causes crash for IE.

I just squeeze all those 31 imports in one "<style> </style>" and hurray!!!! the problem is resolved.

Reference: Microsoft Support about 31 style tags