Client side js routing for responsive site... serve differ page depending of screen size

client side js routing for responsive site… serve differ page depending of screen size eg server normal-cars.html for PCs, but for max768px-cars.html for mobiles serve this,… is ok as of performance… In other words basic redirection - after detect screen size - using window.location or else…?

How detect with JavaScript screen size? like below in jQ…
http://stackoverflow.com/questions/2242086/how-to-detect-the-screen-resolution-with-javascript

Using jQuery you can do:

$(window).width()
$(window).height()

Why not just use media queries?

I use ajax and window.location redirection so needed resolution in JavaScript…

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.