Defer not working, but async does
-
Hi
I have only enabled “Optimize JavaScript Code”
And ticked “Do not aggregate but defer?”But I do not in the htlm code of the page see Defer before src.
But when under the Extra tab, enabling Async for a specific JS file, I can see “async src=” correctly in the html.
I used the plugin “Async Javascript” and then could see in the html:
” <script type=’text/javascript’ defer=’defer’ src=’https://www.a ”
Now disabled Async and installed Autoptimize.Should I not be able to see “Defer” in the html code when using the setting as described at the top of this post?
I tried enabling “Optimize HTML”, and just briefly saw a big reduction of the code. So something happens there.
I use Elementor with OceanWP theme. Just used Asset Cleanup plugin before I tried Async and now instead Autoptimize. Everything latest version.
Thank you
BR
DaronThe page I need help with: [log in to see the link]
- The topic ‘Defer not working, but async does’ is closed to new replies.