Is there a way to determine if the browser will freeze the DOM while scrolling?

Is there a way to detect if the browser will freeze the DOM or disable JavaScript when scrolling? Some mobile browsers are known to do this, and it effectively kills scroll-based effects such as parallax and animation. I would like to effectively implement the following pseudocode without resorting to using NU:

if (!browserWillFreezeWhileScrolling) { initializeScrollingEffects(); } else { initializeFallbackScript(); // maybe unnecessary } 

From what I see, Modernizr does not check it.

+4
source share

Source: https://habr.com/ru/post/1487200/


All Articles