problems with autoptimize
-
I have noticed strange behaviour on my website. Sometimes the content just would not load (for example on homepage). It does not happen all the time – but I am able to replicate it on incognito mode (it happens every 2-3 new sessions)
Developer tools show the following error:
Uncaught TypeError: Cannot read properties of undefined (reading ‘browser’)
at HTMLDocument.<anonymous> (autoptimize_c223b233856963a7069f2c30f3602c39.js:44)
at s.fn.init.n.fn.ready.n.fn.init.ready ((index):5)
at autoptimize_c223b233856963a7069f2c30f3602c39.js:44And here is this line 44:
jQuery(document).ready(function(){‘use strict’;rockthemes_extend_modernizr();var spfx=”;switch(BrowserDetect.browser){case’Chrome’:spfx=’-webkit-‘;break;case’Explorer’:spfx=’-ms-‘;break;case’Firefox’:spfx=’-moz-‘;break;case’Safari’:spfx=’-webkit-‘;break;case’Opera’:spfx=’-o-‘;break;}
After reloading this error disappears and everything works fine. But when I start a new incognito mode session (every 2-3 sessions) it happens again.
What should I do to fix this error?
The page I need help with: [log in to see the link]
- The topic ‘problems with autoptimize’ is closed to new replies.