Currently, I am testing the best optimization practices for front-end development. As part of this process, I have utilized gulp and npm to merge and minify my CSS and JS files into a single all.min.css and js.min.css file.
Upon analyzing my website using Google PageSpeed, I received a warning regarding "Eliminate render-blocking JavaScript and CSS in above-the-fold content." To address this issue, I added the "async" attribute to my JavaScript script as follows:
<script async src="/dist/js/all.min.js"></script>
This modification seems to be working fine for my JavaScript file, but I am unsure how to handle the .css file. The current code for including the CSS file is:
<link rel="stylesheet" href="/dist/css/all.min.css">
The all.min.css file consists of various libraries such as bootstrap, font-awesome, some small libraries, and my style.css, totaling 33kb. Is it considered good practice to include such a large CSS file directly in the HTML source? Have I overlooked something in my approach? My goal is to achieve a score of at least 100 points on PageSpeed Insights without resorting to impractical or inefficient solutions.