If you have the script specified in the <head> (not recommended for starters), this will also slow down the initial page rendering time.
If instead of quickly returning 404, your site simply accepts the connection and then never answers, this can lead to the fact that the page will take an unlimited amount of time to load, and in some cases block the entire user interface.
(At least it was in the case of one FireFox revision, I hope they fixed it, since I saw that this happened ~ 2 years ago. *)
At the very least, you should put tags in the order of the pages, as you can solve this problem.
It’s best to use one consecutive no-op URL, which is used as padding for all “nonexistent” files. JavaScript that returns a 0-byte response with HTTP headers telling UA to cache it until the cow returns home, which should adversely affect most of your client errors on the server, and not for the first time (and this is unlikely to hurt people even at the dock)
* Lesson learned: do not put script -src links in your head, especially for third-party scripts located outside your machine, because then you can rejoice that customers will be able to access your site, but the risk that the page will be inoperable due to for some JS ads that were unavailable due to some kind of internet weirdness. Even if they are supporters of the third grade.
Kent Fredric
source share