Hi I'm trying to increase the speed of the user's first pageview of my website. I have a large js file for my site but most of it isn't needed for the display of the initial page-load. I want to separate it into 2 js files. The first file is essential for the display of the site. I want to load the second js file after the page is done loading. If I do that will the browser sill cache the second js file? Will their browser know on next pageview that it already loaded that file and not try to load it again? How do I give the user the second js file after the page is done loading but only if they don't have it cached already? If they have it cached they should just have it already and ideally not have to wait for the page to even be done loading.
Bookmarks