Giter VIP home page Giter VIP logo

Comments (8)

benmccann avatar benmccann commented on June 6, 2024 1

It's very bizarre that Chrome DevTools and PageSpeed Insights are giving such different results for this. I've filed an issue in the Lighthouse repository: GoogleChrome/lighthouse#14301. Hopefully they can shed some light on it.

from cobe.

shuding avatar shuding commented on June 6, 2024

This is definitely critical and it's what COBE was made for. I think COBE should be way more performant than most of WebGL solutions out there. It's strange to have only 47, because it scored 100 for me:

CleanShot 2022-08-18 at 16 44 40@2x

from cobe.

shuding avatar shuding commented on June 6, 2024

Btw let me know if there's anything I can help, if you decide to go with this library :)

from cobe.

benmccann avatar benmccann commented on June 6, 2024

They said it's because the web-based PageSpeed Insights tool just runs WebGL with software rendering and there's a ticket to track that: GoogleChrome/lighthouse#8557

I wonder if there's a way to detect if hardware rendering is enabled and only display the animation on https://cobe.vercel.app/ if it is?

from cobe.

shuding avatar shuding commented on June 6, 2024

This means every WebGL page will have the issue with PageSpeed Insights then. Personally I don’t think it makes sense to hack it to bypass performance measurement tools (because it can’t represent the real world usage then). But yeah you can for sure render a static image instead of this component if hardware rendering isn’t supported.

from cobe.

benmccann avatar benmccann commented on June 6, 2024

I guess the question is what will you want to show to a real user if they don't have hardware acceleration. I agree we shouldn't special case performance measurement tools. I'm not sure what the experience on a non-accelerated machine would be generally though and whether it still makes sense to show the animation in that case

from cobe.

shuding avatar shuding commented on June 6, 2024

Yep! In our product we show a video of that same rotating globe if WebGL isn't supported, I think it works great in this case too.

from cobe.

benmccann avatar benmccann commented on June 6, 2024

Cool. Thanks for the help!

from cobe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.