The site doesn't have a lot of client-side JS going on, and what is there is fairly minimal, but still—why load what isn't needed?
Consider making an entry JS file that checks to see if the current page requires a script and dynamically imports it if it does, rather than loading the file up-front or requiring that files be manually referenced.
The site doesn't have a lot of client-side JS going on, and what is there is fairly minimal, but still—why load what isn't needed?
Consider making an entry JS file that checks to see if the current page requires a script and dynamically
import
s it if it does, rather than loading the file up-front or requiring that files be manually referenced.