Question: You have a large JavaScript file (over 15MB) loading in the of the page. This is blocking DOM parsing and delaying rendering. Your visitors are
You have a large JavaScript file (over 15MB) loading in the
of the page. This is blocking DOM parsing and delaying rendering. Your visitors are unhappy. (a) Small part (1MB) of the script manipulates DOM, (b) other part (500kB) registers a service worker and (c) rest of it serves complex calculation based on users input. What are the steps you can take to make this script non-blocking? Make sure that your changes don't hamper the original performance requirement of the JavaScript file.Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
