well, first off all start with AsyncJS disabled and configure Autoptimize so that everything works perfectly (refer to the AO FAQ for info on how to troubleshoot). Once that is working enable AsyncJS again and look at which of the excluded files (if any) can be asynced (or deferred) by doing some trial & error.
hope this clarifies,
frank
Hi
Just this is what i did.
And all work perfectly until some maps in some routes.
Whis just AO all works but a little bit slowly, and when i set up AJs the site run quickly but some routes (custom post like post that generate cm routes mamager) doesnt load, looks empty
OK, so;
* what errors are visible on the browser console when those custom routes fail to load?
* have you tried not asyncing the plugin that handles those custom routes?
hello again:
in chrome console i see:
autoptimize_7ae5f3d039f0e30072d2e4f346287e24.js:288 Uncaught TypeError: Cannot read property ‘gallery’ of undefined
at HTMLDocument.<anonymous> (autoptimize_7ae5f3d039f0e30072d2e4f346287e24.js:288)
at i (jquery.js:2)
at Object.add [as done] (jquery.js:2)
at n.fn.init.n.fn.ready (jquery.js:2)
at a.fn.init.n.fn.init (jquery.js:2)
at new a.fn.init (autoptimize_7ae5f3d039f0e30072d2e4f346287e24.js:43)
at n (jquery.js:2)
at autoptimize_7ae5f3d039f0e30072d2e4f346287e24.js:288
* have you tried not asyncing the plugin that handles those custom routes?
i have tried it, but i have the same problem.
currently my AJs settings are:
Async JavaScript Method: defer
jQuery: exclude
Plugin: Autoptimize
Enable Autoptimize Support: enable
jQuery Method: Defer
-
This reply was modified 7 years, 8 months ago by
barrenas.
I’m going to have to take a look at your site, can you share the URL barrenas?
Hi
Yes of couse:
I think that MAPS problem, its solved, but im not sure. I desactivated AJs, and deleted completly the AO cache, latter i reactivated AJs with the settings that i told in the othe comment.
But ADSENSE problem continue, the style is broken.
The site is https://routeler.com/
And for example a conflictive post is https://routeler.com/maps-routes/best-things-to-do-in-vienna-freyung-tour-and-route/ , there are two adsense one on head other on sidebar on right, works with adinsert and text widget respective
so do you use a plugin to add AdSense barrenas? have you tried excluding that from AsyncJS?
Hi
For the head adsense i use adinsert plugin, i will try to exclude and telling u.
But for sidebar adsense i just use the text widget of wordpress, how its possible?
Bouth of them.lost the style in some post like https://routeler.com/maps-routes/best-things-to-do-in-vienna-freyung-tour-and-route/ , almlst in my computer using chrome.
Thanks again for ur help