javascript - Files loaded using $scriptjs or any other asynchronously loader -
Say I have an fingerprint app that uses lazy load controller files (via $ scriptjs) and all the dependencies when the user navigates on one path. . There are 3 routes in the app: A, B, C
If the user has root A, B and A, then there are files to be loaded twice in memory or are the smart enough to cache the browser files and retrieve them?
The browser will cache external JavaScript files, if so, if a user has loaded a script The browser should recognize that it has been cached and should not be called again
If you are using Firefox then you can see it by using the firebug extension. In the Net tab of Firebug, you can see the javascript file that is being loaded for the page. Once they are cached, you will see the name of the file in light gray. That means they are cached.
Comments
Post a Comment