Jump to content

How to defer loading of javascript?

Featured Replies

Posted

Hi everyone, I'm trying to increase my page load speed and am not sure where my external .js script file is to defer.

I'm following the guide here trying my best to get it to work.

Any help is greatly appreciated!!

And what about combine JS?

And what about combine JS?

The files are already combined in ips4 .

  • Author

Hey guys, I'm not really following....what is combined JS?

In Ips4 you this - loading JS before the "/body tag"

Customization - Themes - Edit your theme - Custom ->  Javascript include location: Just before </body> tag -> Save

In Ips4 you this - loading JS before the "/body tag"

Customization - Themes - Edit your theme - Custom ->  Javascript include location: Just before </body> tag -> Save

IPB3?

  • Author

That worked! Such a simple solution, thanks Adlago!


I am curious I did tests CSS - but apparently the developers do not care.

 

anyone know how to defer ips js properly without breaking the forum?

anyone know how to defer ips js properly without breaking the forum?

I see no problem described above. No breaking of the forum.

 before </body> tag 

does not defer the js on all ips js according to gtmetrix

uploads/javascript_global/root_framework.js.3520be62b0b719dac3409b8bd73bb389.js?v=300a8d20b0 (216.3KiB)

uploads/javascript_global/root_library.js.04850bf2f119d9ce3f8469cb8b098594.js,qv=300a8d20b0.pagespeed.jm.EAtrNTdyYN.js (172.8KiB)

uploads/javascript_global/root_js_lang_1.js.912558cc23ad6372d396e3b08d600fbf.js,qv=300a8d20b0.pagespeed.jm.wIKkJCmZcN.js (2.1KiB)

Why in webpagetest waterfall JS does not look combined?

http://www.webpagetest.org/result/150911_5C_15YQ/1/details/

On the contrary. If you see all folders in the installation package you will see too much JS.
And here in the test only see 8-9 combined and minimized for better performance.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.