EnlighterJS resources not loaded yet
-
If I use cache plugins (like WP-Rocket) that has option to load JS files ‘deferred’, the EnlighterJS doesn’t work, returning error: ‘EnlighterJS resources not loaded yet’.
You should wrap the JS code you add to the page in some sort of load waiting code to execute when all the JS files are loaded, because when deferred loading is active, your code embedded in HTML is executing before the files are loaded.
Milan
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘EnlighterJS resources not loaded yet’ is closed to new replies.