Youssef
Chevereto Member
Combine external JavaScript
There are 3 JavaScript files served from www.mywebsite.com. They should be combined into as few files as possible.
There are 3 CSS files served from www.mywebsite.com. They should be combined into as few files as possible.
What does Google say:
"Good front-end developers build web applications in modular, reusable components. While partitioning code into modular software components is a good engineering practice, importing modules into an HTML page one at a time can drastically increase page load time. First, for clients with an empty cache, the browser must issue an HTTP request for each resource, and incur the associated round trip times. Secondly, most browsers prevent the rest of the page from from being loaded while a JavaScript file is being downloaded and parsed. (For a list of which browsers do and do not support parallel JS downloads.)"
There are 3 JavaScript files served from www.mywebsite.com. They should be combined into as few files as possible.
- https://www.mywebsite.com/app/lib/chevereto.min.js?6c2698836e17636453563c018ef8f52b
- https://www.mywebsite.com/lib/Peafowl/js/scripts.min.js?6c2698836e17636453563c018ef8f52b
- https://www.mywebsite.com/lib/Peafowl/peafowl.min.js?6c2698836e17636453563c018ef8f52b
There are 3 CSS files served from www.mywebsite.com. They should be combined into as few files as possible.
- https://www.mywebsite.com/app/themes/Peafowl/style.min.css?6c2698836e17636453563c018ef8f52b
- https://www.mywebsite.com/lib/Peafowl/fonts/open ... pensans.min.css?6c2698836e17636453563c018ef8f52b
- https://www.mywebsite.com/lib/Peafowl/peafowl.min.css?6c2698836e17636453563c018ef8f52b
What does Google say:
"Good front-end developers build web applications in modular, reusable components. While partitioning code into modular software components is a good engineering practice, importing modules into an HTML page one at a time can drastically increase page load time. First, for clients with an empty cache, the browser must issue an HTTP request for each resource, and incur the associated round trip times. Secondly, most browsers prevent the rest of the page from from being loaded while a JavaScript file is being downloaded and parsed. (For a list of which browsers do and do not support parallel JS downloads.)"