fecgov / openFEC-web-app

DEPRECATED See https://github.com/18F/fec-cms for fec.gov's code
Other
43 stars 31 forks source link

load by state profile information only if user requests it #2039

Closed LindsayYoung closed 7 years ago

LindsayYoung commented 7 years ago

It also looks like we load the individual contribution by state information on the initial page load before people have clicked on the tab. For better performance, we will want to load that client side and only if the user clicks on the tab.

I was watching the network on this page load on a candidate and committee page

https://beta.fec.gov/data/candidate/H8CA05035/?tab=summary https://beta.fec.gov/data/committee/C00213512/?cycle=2018&tab=summary

noahmanger commented 7 years ago

Ah! Good catch. This is a fix we can make.

noahmanger commented 7 years ago

Grabbed this fix in #2113