I have a
700kb decompressed JS file which is loaded on every page. Before I had
This file is
~130kb gzipped and is served over
gzip. However on the local computer it is still unpacked and loaded on every page. Is this a performance issue?
For example jquery
datatables is 200kb compressed and that is only loaded on 2 of my website pages. Another is
jqplot and that is another
I now have
400kb of excess code that isn't executed on
80% of the pages.
Should I leave everything in 1 file?
Should I take out the jquery libraries and load only relevant JS on the current page?