|
VerySimple Developer Blog
Technical Tips, Tricks and Rants.
Comments:
4 Comments posted on "Dynamically updating CSS based on browser width"
notpeter on May 1st, 2007 at 9:30 am #
Opera (9.20 Mac) triggers the same javascript warning as IE.
Jason on May 2nd, 2007 at 4:24 pm #
Hmm… I haven’t tried Opera in a while but that’s good to know. Thanks for the comment. Well, I think this concept is still interesting. But if I ever put this into a production site, I would probably use one of the pre-made javascript APIs to capture the resize event and get the window width - one where they’ve already worked out the quirks on the various platforms. Even just testing with FF and IE6 for Windows there’s various glitches.
Martin on July 13th, 2007 at 12:01 am #
There’s a little flicker when reloading the page when its large — the narrow style loads briefly (half second). Is there a way to get rid of this? How to set a cookie… ?
Jason on July 20th, 2007 at 12:52 pm #
I did notice some flickering as well - this code was a proof of concept, but there is now better code out there to handle this. I would recommend checking some of the JavaScript frameworks that provide layout management. Post a comment
|
|
||||||||||||