I ran into a very irritating problem today, which fortunately ended up not being too terrible because I remembered that there was an issue with IE and too many tags in the <head> section. Essentially, I believe the bug is summed up in this Microsoft support post titled: “All style tags after the first 30 style tags on an HTML page are not applied in Internet Explorer.” That’s true. In my particular case it wasn’t that CSS wasn’t being applied, but rather than <script> tags in the head section were not being downloaded causing JavaScript errors downstream. From Microsoft’s explanation of their bug, this would seem like it’s unrelated, but for whatever reason when I removed some of the CSS files, suddenly my JavaScript error disappeared. Without going into a lot of specifics, I was using the YUI 3 loading framework to get base files while including the code that I wanted to extend their classes. The error I received was along the lines of “Object does not support this method or property,” because, the YUI classes had not been fetched/interpreted/etc. So if you run into this problem and you’re out of ideas, check your page’s <head> tag and see how many <script> and <link> tags you have in there.
Why does Internet explorer not get my JavaScript or CSS file but all other browsers do?
Posted in Development.
Comments Off
– December 7, 2009
Social Links