Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latency of map display #8

Open
georgio8 opened this issue Jan 10, 2017 · 1 comment
Open

Latency of map display #8

georgio8 opened this issue Jan 10, 2017 · 1 comment

Comments

@georgio8
Copy link
Collaborator

There is now a lag of ~ 4 secs on opening LCC's consultation map. This is mainly due to the large number of AJAX calls to the Cyclescape server (about 70 of them) to get the issues for TfL and each borough:
Possible actions:

  • batch up the AJAX calls to the CyclesScape API
    ** E.g. could do this with a single call getting all the issues in Greater London, then sorting them on the client side.
    ** a solution where the server does most of the sorting work would be better (simpler and more responsive).
  • Minify the scripts
@georgio8
Copy link
Collaborator Author

** a solution where the server does most of the sorting work would be better (simpler and more responsive).
Write a spec and ask Nikolai to implement it in the API.

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

No branches or pull requests

1 participant