Responsive JavaScript
responsivejavascript.com
responsivejavascript.com
Edit: How he got there is a neat, quick read for anyone interested: http://adactio.com/journal/5429/
Thanks for spreading the word.
why on earth have javascript to do CSS's work?
and why do you care about screen size changes? the only good thing it does is hint you about device orientation. But who says when i change from portrait to landscape i want a whole new site? sometimes turning a device just mean i want to fit one image better in the screen. not change all my navigation elements to fit the designer dream of multi-screen shenanigans.
yeah, i sound like the old fart who don't like shinny things and change. but people impressed by this sound like the kids adding animated gif after animated gif to their geocities page. now get off my lawn!
Yes, you don't need a whole new site. But I as a developer may want to provide a better experience with the additional horizontal space I just received in the landscape mode. Or I may want to sneak in some ads on the side.
Media queries go only so far but they cannot help you to create behaviour that depends on the width of the viewport.
See you are just adding complexity to development and use of the site.
I guess the second mention of "Javascript" should be "CSS", right?
Do now need to send every possible view port with the original header?