codeforamerica / resident-web-use-research

[work in progress] Digital Front Door survey tool for resident research
8 stars 4 forks source link

Optimize slow correlation process #13

Closed migurski closed 8 years ago

migurski commented 9 years ago

There are heavy, synchronous loops in the code that block the rendering thread.

Here’s a live example: survey-page-results.html (watch the http vs. https URLs, Chrome tries to SSL you but it needs to be http).

Needs

Several data-processing functions in the library take a few seconds to work, and need to be broken up over time so the display can manage user expectations.

Relevant files and functions: