I having a problem with page loading time on a page on my site.
i went through the whole page and put console.time to pinpoint the big problems.
I found that I have an external js file that I am calling from within my same site.
I refer to it as
that takes 500ms to load.
When I take all that page and put it directly on my page, that whole section only takes 10ms to load.
Now that is a very big difference in time.
How come it is best practice to put all big js scripts into an external file? or am I doing something wrong with the include script.
(the reason I have my site name in front, is because it's on a server side include file that shows up in subfolders also, so I need it to be a long url)