What are the advantages and disadvantages of including JS/CSS inside the HTML instead of separated files?
Specifically concerned about performance issues, for example, if the CSS and JS are small and simple, and they are not going to be used in any other page, is it better to include them with the HTML so there is only a single request to the server? Or is this not a concern anymore with HTTP/2?
Which other technical considerations are important regarding this decision?
[email protected]
. See also libonion[email protected]
). Being on summer holidays (in august 2021), I will answer in a few days. I also believe your question is a matter of opinion. Some websites have static contents, others don't. And even if mixing JS and CSS and HTML is bad practice, it is done.