Home » Questions » Computers [ Ask a new question ]

Caching Issue with Localhost

Caching Issue with Localhost

I'm trying to do some simple locally-hosted development using the Ext framework. The site is configured as a virtual directory under IIS 7, so that http://localhost/app points to the index file. The path works fine; the file loads.

Asked by: Guest | Views: 198
Total answers/comments: 1
Guest [Entry]

"I'd guess that your delay isn't browser-getting-file-from-localhost-server, it's browser-interpreting-2.4mb-of-javascript. That's a lot of code to parse, and it's going to take more time than simply reading the file off the disk. I'd expect that the browser won't cache a compiled version of the file anyways, so even pulling a cached version would require re-parsing the script.

Your best bet is to optimize the .js file and strip out any functions you don't actually use (or that aren't required by the functions you do use)."