What is the maximum size of JavaScript that would be reasonable for a web page? I have a JavaScript program with a data segment of size about 130,000 bytes. There is virtually no whitespace, comments, or variables in this file which could be minified. The file looks something like this:
"a":[0],
"b":[0,5],
"c":[3,4,24],
"d":[0,1,3],
going on for several thousand lines.
Google Analytics gives the following info on the connection speed of the current users:
Rank Type Visitors 1. DSL 428 2. Unknown 398 3. Cable 374 4. T1 225 5. Dialup 29 6. ISDN 1
Is the file size too much?
The alternative is using a server-side program with Ajax.