MarcoGervasoni / gwt-math

Automatically exported from code.google.com/p/gwt-math
0 stars 0 forks source link

Combine MathContext.js and BigDecimal.js into one file #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Combine MathContext.js and BigDecimal.js into one file.  This reduces the
number of http requests and speed ups application startup time.

Even better would be to eliminate the additional .js files and turn them as
JSNI methods instead.

Original issue reported on code.google.com by johnth...@gmail.com on 8 Jan 2009 at 4:35

GoogleCodeExporter commented 9 years ago
I agree completely.

Inlining into java would have the huge benefit of the compiler optimizing away 
all
the code that is not actually used!

But if the file(s) are kept as separate javascript, it would be good with a
version-specific name, e.g. gwt-math-2.1.1.js, so that the web application with 
some
sanity can be configured to deliver the file(s) with a "far future" http Expires
header (e.g. now + 1 year). This would make the file(s) perfectly cacheable in 
the
browser as well as http proxy servers. And it would be "safe" because an updated
version would have a different name, and therefore to the caches appear to be a
totally different resource.

Original comment by Ulrik.S...@gmail.com on 10 Dec 2009 at 11:31