Hi @manoj4blogging
you didn’t exclude all EnlighterJS resources from autooptimize. MooTools is still within the autooptimize package – therefore it doesn’t work
@andi-dittrich as you have mentioned “enlighter/resources/” this in Exclude scripts from Autoptimize i have mentioned that much, But can you told me what more should I need to mention there
by following one of your old articles [OLD article: https://wordpress.org/support/topic/enlighter-error-mootools-framework-not-loaded-yet/%5D I have update my Exclude scripts from Autoptimize to:
wp-includes/js/dist/, wp-includes/js/tinymce/, js/jquery/jquery.js,wp-action/*.*, wp-content/plugins/enlighter/resources/
But still there is no luck, so can you guide what should I do to fix this issue
Effected page; https://www.softwaretestingo.com/capture-screenshot-different-name/
-
This reply was modified 6 years, 6 months ago by
Manoj Rana.
please try to disable Autoptimize and look if Enlighter is working
wp-content/plugins/enlighter/resources/ is the only directory which includes the scripts/styles
if it’s not working i will try to install autooptimize within the dev environment..
i have deleted autooptimize plugin and reinstall the enlighter plugin but no luck
getting the same error in console “(index):878 Enlighter Error: MooTools Framework not loaded yet!”
for future reference; you can disable Autoptimize on a per-request basis by adding ?ao_noptimize=1 to the URL.
hope this helps debugging,
frank (ao dev)
you’ve another “optimizing” plugin installed which adds the defer='defer' attribute to scripts – the will break ANY plugin..
currently, I have this many plugins only.. No AO or any other plugins installed
Ad Inserter
Advanced Custom Fields PRO
Akismet Anti-Spam
Classic Editor
Easy Table of Contents
Enlighter – Customizable Syntax Highlighter
Genesis Simple Edits
Google Analytics Dashboard for WP (GADWP)
Jetpack by WordPress.com
Nginx Helper
OneSignal Push Notifications
Rank Math SEO
Really Simple SSL
ShortPixel Image Optimizer
TinyMCE Advanced
WPForms Lite
@manoj4blogging
i cannot tell you which of the plugins (or your theme) modifies the enqueued scripts – adding “defer” is not the regular WordPress behaviour and should NEVER by enabled or external scripts.