Reducing the memory of an existing web page

I work with a web application that is really memory hungry because the source encoders put on the client side of the business logic (JavaScript, jQuery). Thus, web browsers crash due to lack of memory when users work with many objects in the application.

Moving business logic to the server side is not a short-term option. So I searched the net for ideas on how to quickly reduce the memory footprint of an existing web page , but came out empty-handed.

Are there any general tips? (For example, can shortening JavaScript variable names result in significant improvement?)

+3
source share
1 answer

This is a very broad question as we cannot see the Javascript code that runs this business logic. I hope this website is hosted in a controlled environment, because obviously script / blockers with javascript disabled will be useless. I assume some things will be offered:

  • You have all your Javascript in a single .js file and its thumbnail. You would not do this with the development version, only the production version, as a mini file, would make it completely invisible - see http://code.google.com/p/minify/ for more information. Having all of your Javascript in one file will reduce the number of HTTP connections the client must complete to load scripts.

  • script , . ( , ). script , .

, , " " . http://developer.yahoo.com/performance/rules.html

+1

All Articles