etalab / recherche.etalab.studio

Une exploration pour trouver des jeux de données ouverts
https://recherche.etalab.studio
MIT License
2 stars 3 forks source link

High CPU usage (especially on Safari) #46

Open abulte opened 4 years ago

abulte commented 4 years ago

When I visit http://data.gouv.fr/fr/?flag=recherche on Safari Mac OS Catalina, the browser starts to consume CPU like crazy, even without clicking in the search box.

Capture d'écran 2020-04-29 13 47 00

When I remove the flag, the CPU is fine (around 2%).

On Chrome it also happens but a little less (around 60% CPU) and it goes away after about 10 seconds (unlike on Safari). Without the flag there's no noticeable CPU spike.

abulte commented 4 years ago

According to the Safari dev console, the loadCards fn seems to be running forever.

Capture d'écran 2020-04-29 14 08 05