saadpasta / developerFolio

🚀 Software Developer Portfolio Template that helps you showcase your work and skills as a software developer. (This is currently not being actively maintained)
https://developerfolio.js.org/
GNU General Public License v3.0
5.48k stars 2.82k forks source link

High CPU usage #354

Open aravindvnair99 opened 3 years ago

aravindvnair99 commented 3 years ago

Opening https://developerfolio.js.org results in very high CPU usage even when the tab is idle.

kartikcho commented 3 years ago

Could you provide screenshots of high CPU usage and other relevant information? If the dev server is the one resulting in heavy usage then that is expected and normal.

aravindvnair99 commented 3 years ago

Could you provide screenshots of high CPU usage and other relevant information? If the dev server is the one resulting in heavy usage then that is expected and normal.

@kartikcho the issue is reproducible by opening the link I provided (taken from the repository's about section) and checking in the operating system's task manager which says the browser is having heavy CPU usage and then opening the browser's task manager shows the tab consuming heavily on the CPU.

kartikcho commented 3 years ago

I don't see any unusually high activity in my processes. Speculating on this, I think it could be caused by Lottie animations being run on GPU (or CPU if you don't have one) thus causing high usage.

A fix that comes to mind would require using either gifs or static images instead of Lottie which isn't something we intend to do (but users may switch to them for optimizing their deployment).

On running Lighthouse performance tests, there's much we can improve on assets and code (although unrelated to this issue)