Revslider will not load when Force JS in head enabled
-
Hello,
I recently noticed that the Slider Revolution (v5.3.0.2) will not launch when Autoptimize option “Force JavaScript in <head>” is checked on one of my websites. The Chrome console reports the following error:
Uncaught TypeError: Cannot read property 'querySelectorAll' of null at mlPushMenu._init (autoptimize_94c381b….js:246) at mlPushMenu (autoptimize_94c381b….js:244) at HTMLDocument.<anonymous> (autoptimize_94c381b….js:255) at i (autoptimize_94c381b….js:3) at Object.fireWith [as resolveWith] (autoptimize_94c381b….js:3) at Function.ready (autoptimize_94c381b….js:3) at HTMLDocument.K (autoptimize_94c381b….js:3)
I have other WP websites using different themes that also use RevSlider but I cannot reproduce such behavior, so this looks like a site-specific issue. I can live with leaving ‘Force JS in head’ disabled, but if the author is interested in investigating this issue further, I will be happy to help.
I have left the staging version of the website purposefully broken so that the error message can be studied. The site can be opened via demo [dot] fitmotion [dot] eu (sorry, I don’t want crawlers to pick up a link to a staging site).
Ivan Arnaudov
- The topic ‘Revslider will not load when Force JS in head enabled’ is closed to new replies.