Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

data.json takes very long to load #28

Open
marians opened this issue Apr 28, 2012 · 4 comments
Open

data.json takes very long to load #28

marians opened this issue Apr 28, 2012 · 4 comments

Comments

@marians
Copy link
Contributor

marians commented Apr 28, 2012

Here is a test via DSL:

http://www.webpagetest.org/result/120428_5G_44HE5/1/details/

It shows that data.json takes more than 11 seconds to load.

If users start to interact with the sliders before the loading is finished, they won't see a result visualization until this data is completely loaded and processed. In order to improve the experience here, we should try to make the data more compact.

GZip compression would help, as an example.

@marians
Copy link
Contributor Author

marians commented Apr 28, 2012

Might be useful: http://wiki.nginx.org/HttpGzipModule

@rufuspollock
Copy link
Contributor

@marians gzip might help a bit but the file is 1.4MB! Several points:

  • For most of the stuff we only need one years data (not every years data).
  • We only need the metadata to show the sliders
    • We can always show a loading icon in the graph area until data has loaded

@rufuspollock
Copy link
Contributor

I've put in gzip but it does not seem to be having much of an effect (perhaps it is misconfigured ...)?

@marians
Copy link
Contributor Author

marians commented Apr 29, 2012

Currently data.json isn't GZip encoded. If you look at the response headers, it's not there. There should be something like "Content-Encoding: gzip".

Where did you active compression? in nginx? If the link in my comment above applies, per default the configuration only applies to html content. To extend that, you will have to modify "gzip_types".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants