michalsnik / aos

Animate on scroll library
MIT License
26.68k stars 2.58k forks source link

Web Vitals Performance Problems #857

Open MichalKowalczyk opened 1 month ago

MichalKowalczyk commented 1 month ago

Library is currently facing performance issues as indicated by the Core Web Vitals assessment. Based on the attached analysis, the library fails the assessment due to a slow Largest Contentful Paint (LCP), despite showing acceptable results in other metrics. These issues can negatively affect both user experience and SEO performance.

I’m not reporting this as a bug because it’s not a problem inside the library's code. It's also not a feature. It seems more related to how Web Vitals measures websites, and it generally struggles to handle AOS properly. It would be great if the library could be slightly adapted to align better with Web Vitals, as it is truly an amazing tool.

image

anilsonlopes commented 5 days ago

The poor performance of this page should not be taken as a standard, as it is an example page and therefore has many animations. In the real world, animations, especially those triggered by events such as scrolling, should be used sparingly and wisely.