Chapter 3
Performance Tuning
Section 6
Combining and Minimizing Assets
If your web page includes many CSS and/or JavaScript files, the page will open very slowly because the browser sends a large number of HTTP requests to download each fie in separated threads. To reduce the number of requests and connections, we can combine and compress multiple CSS/JavaScript files into one or very few files in production mode, and then include these compressed files on the page instead of the original ones. - Open the source HTML code of the index page of your application and check if it includes three JavaScript files - Generate the assets.php configuration file and specified bundles for compressing - Check whether the CSS file includes other resources by relative paths