Dylan Leblanc
11-26-2002, 07:42 AM
Have a look at this page and view the source:
http://www.skyscraperpage.com/diagrams/?d=
Most of the page is output by Javascript. Since there is a large amount of data displayed in a repetitive manor, I decided to pack all the data into a Javascript array, and then have it output by a function in an external Javascript file.
This has reduced the page sizes from about 60k to less then 13k.
I grab all the data out of the database, and then have PHP format it into proper Javascript array syntax. Very quick and easy.
http://www.skyscraperpage.com/diagrams/?d=
Most of the page is output by Javascript. Since there is a large amount of data displayed in a repetitive manor, I decided to pack all the data into a Javascript array, and then have it output by a function in an external Javascript file.
This has reduced the page sizes from about 60k to less then 13k.
I grab all the data out of the database, and then have PHP format it into proper Javascript array syntax. Very quick and easy.