Q:

Avoid resize Jquery event when chrome asks me to translate the page

I am working in an existing page and when it is resized the Menu breaks a bit and the only way I found to fix that is once the page is resized I reload the page and the styles are ok.
The problem is when chrome ask me to translate the page...the resize method is fired and the page reloads but I don't want this.
Is there any way to know if the resize was done by chrome in order to avoid this behaviour? or maybe you could tell me another way to fix that.
Thanks

A:

Chrome (as well as other browser) will raise a resize event every time the viewport size changed.
Unfortunately, you cannot know what triggers this size change: is it the "distraction free" mode (F11) ? opening the web developper tools ? translate toolbar ? a window minification ? or simply a manual window resize ?
Therefore you should not react to resizes by reloading the page. There are many possible ways to fix your menu with some JS. Perhaps can we help you in another dedicated question.

