Coder Social home page Coder Social logo

Some sites fail to analyze about cssstats HOT 12 OPEN

vielhuber avatar vielhuber commented on June 2, 2024
Some sites fail to analyze

from cssstats.

Comments (12)

bartveneman avatar bartveneman commented on June 2, 2024 1

I've been doing some digging around, and it seems to me that the get-link-contents.js utility is a little broken, at least for some of the examples mentioned above. They suffer from get-css being able to find some <link>s on the page, linking to valid CSS, but the final result CSS string is empty.

Screen Shot 2020-02-14 at 10 32 07 PM

from cssstats.

bartveneman avatar bartveneman commented on June 2, 2024

Do you mind sharing a url so that someone can try to reproduce this specific case?

from cssstats.

vielhuber avatar vielhuber commented on June 2, 2024

Can I do that via PM?

from cssstats.

bartveneman avatar bartveneman commented on June 2, 2024

My Twitter DM's are open : @bartveneman

from cssstats.

vielhuber avatar vielhuber commented on June 2, 2024

Done.

from cssstats.

alexieyizhe avatar alexieyizhe commented on June 2, 2024

+1 on this issue, occurs on https://hackthenorth.com/

from cssstats.

bartveneman avatar bartveneman commented on June 2, 2024

@alexieyizhe hackthenorth.com fails to analyze because the get-css package cannot find any CSS on the page: https://cssstats.com/api/css?url=hackthenorth.com. This is probably because all CSS is rendered by a CSS-in-JS solution (styled components, in this case).
This results in empty stats: https://cssstats.com/api/stats?url=hackthenorth.com.

@vielhuber Your issue is probably the same.

Currently, the components that display graphs are not taking 0 CSS very well, causing the page to break.

@johno How should the /stats page deal with a zero-css result? Should the graphs be hidden and regular 0 values be shown in the top of the page? Or should it show some kind of generic empty state instead of only 0 values to tell the user that it couldn't find any CSS?

Happy to submit a PR if you're interested.

from cssstats.

johno avatar johno commented on June 2, 2024

A PR would be great @bartveneman!

from cssstats.

bartveneman avatar bartveneman commented on June 2, 2024

v3.4.1 seems to have fixed a bunch of the above mentioned cases. I can confirm that @vielhuber's site now is showing results and another wesbite that was mentioned in my Twitter DM's is also fixed.

@alexieyizhe's website still doesn't report any CSS, but I think that's because it's using CSS-in-JS only: no CSS files shown in the network tab and a quick [...document.querySelectorAll('style')].map(s => s.innerHTML) returns an array of two empty strings.

That leaves us with the site still not showing a pretty empty state when no CSS was found.

from cssstats.

vielhuber avatar vielhuber commented on June 2, 2024

I can confirm our website is working now. Thanks for all the work.
Please close if appropriate.

from cssstats.

huldan avatar huldan commented on June 2, 2024

v3.4.1 seems to have fixed a bunch of the above mentioned cases. I can confirm that @vielhuber's site now is showing results and another wesbite that was mentioned in my Twitter DM's is also fixed.

@alexieyizhe's website still doesn't report any CSS, but I think that's because it's using CSS-in-JS only: no CSS files shown in the network tab and a quick [...document.querySelectorAll('style')].map(s => s.innerHTML) returns an array of two empty strings.

That leaves us with the site still not showing a pretty empty state when no CSS was found.

I cant analyze ibid.astra.co.id, can you help me ?

from cssstats.

tjameswhite avatar tjameswhite commented on June 2, 2024

Service is very hit and miss for me -- mostly miss. For example, I host 2 very simple sites, on the same shared host. One resolves (https://taichikimkc.com/) the other does't (https://tjameswhite.com/). I have tried other sites as well and I'm getting about 25-30% success rate.

This is all just using the site: https://cssstats.com/stats/

from cssstats.

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.