Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Load API data lazily #345

Closed
jmcarp opened this issue Jul 21, 2015 · 0 comments · Fixed by #441
Closed

Load API data lazily #345

jmcarp opened this issue Jul 21, 2015 · 0 comments · Fixed by #441
Assignees

Comments

@jmcarp
Copy link
Contributor

jmcarp commented Jul 21, 2015

At the moment, all the widgets on a given page either load data from the API server-side, or start loading on the client upon page load. This means we're often loading far more data than the user is likely to look at. We should load data only when necessary (e.g., when the user clicks to the relevant tab or pane). I'm planning to implement this once the latest batch of features is merged in, especially asset splitting, as described in https://github.com/18F/openFEC/issues/908.

@jmcarp jmcarp self-assigned this Jul 21, 2015
jmcarp added a commit to jmcarp/openFEC-web-app that referenced this issue Aug 7, 2015
Add the `onShow` helper, which creates a one-time event listener to do
some work when the specified tab is selected. Also add the
`initTableDeferred` helper, which defers table initialization until the
parent tab is displayed.

[Resolves fecgov#345]
[Resolves fecgov#359]
@jmcarp jmcarp removed the in progress label Aug 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants