Tagged: x
-
AuthorPosts
-
July 23, 2016 at 7:23 am #1099767
LiamHindsonParticipantHi,
I’m trying to defer the render blocking javascript below:
https://www.teachtutti.com/wp-includes/js/jquery/jquery.js
https://www.teachtutti.com/wp-includes/js/jquery/jquery-migrate.min.js
https://www.teachtutti.com/wp-content/themes/x/framework/js/dist/site/x-head.min.js
https://www.teachtutti.com/wp-content/plugins/cornerstone/assets/dist/js/site/cs-head.min.jsI’m not using W3 Total Cache because I use two other caching services: one from my host provider SiteGround and also CloudFlare. I think I would be able to defer it myself manually but I have no idea where each file is being referred from.
One thing I am thinking about is combining all of the above javascript and placing it in the Global javascript for the site. I don’t know if this would work and would also need help in dequeuing all the above javascript for this to work.
Thanks,
Liam
July 23, 2016 at 7:55 am #1099795
FriechModeratorHi Liam,
Thanks for writing in! You can enqueue all your custom scripts in the footer. But you should keep those JS you linked above to the header.
Please read this post: https://community.theme.co/forums/topic/eliminate-render-blocking-javascript-and-css-in-above-the-fold-content/#post-4421
Hope it helps, Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1099767 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
