I am quite puzzled and still unsure how to explain this in proper words. So far i\'ve used and set up my media queries with Breakpoint. An used Breakpoint-variable looks lik
Use classes on body to define if you are on mobile, tablet or desktop instead using pixels.
For me it did not work document.body.clientWidth or innerWidth.
My functionality crashes between 1023-1040px even if my js code must do this statement:
if($(window).width()<1024)
The solution was to put on body a new class for less than 1024 and name it "small-res" and use it than in my code instead of pixels verification:
if($(body).hasClass('small-res'))
I recommend it to you too.