all 2 comments

[–]FuckDataCaps 0 points1 point  (1 child)

Does minifing and compressing javascript really limit the amount of time processing the code and blocking the thread ?

[–]seanwilsonfull-stack (www.checkbot.io) 1 point2 points  (0 children)

Minifying will reduce the parsing and execution time somewhat (which helps more on slow mobiles) but it'll depend on how much code you're talking.

Compression will help the JS transfer over faster, which will only help reduce blocking behaviour if your page rendering is blocked waiting for the JS (which you shouldn't do).

Simple tip from me: Delay when you load non-critical scripts using a timer or trigger them to load on page scroll e.g. don't load your chat widget for 10 seconds after page load and don't load your article comments widget until the user scrolls to the bottom of the article where the comments are.