How to determine that the user "Turned into the window" browser and, if the window size is within 100 — 999px , send a GET request to the server?
$(window).resize(function() { $.get("page.php", {resize: "true"}); }); I noticed that when working in WebKit request is sent at the slightest resizing of the window. The request should be sent once, if the window size changes within 100 — 999px and only if the window size exceeds 999px and then returns back to the zone 100 — 999px - the request is sent again.
resize()and insert a GET request inside how to transfer it to me from the previously asked questions on the stack. Otherwise, I’m still poorly guided in jQuery. - Plush