Comments (12)
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.
from cssstats.
Do you mind sharing a url so that someone can try to reproduce this specific case?
from cssstats.
Can I do that via PM?
from cssstats.
My Twitter DM's are open : @bartveneman
from cssstats.
Done.
from cssstats.
+1 on this issue, occurs on https://hackthenorth.com/
from cssstats.
@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.
A PR would be great @bartveneman!
from cssstats.
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.
I can confirm our website is working now. Thanks for all the work.
Please close if appropriate.
from cssstats.
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.
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)
- Specificity graph not visible in dark mode HOT 2
- Stats doesn't work properly with CSS variables HOT 4
- 502 bad gateway against a site HOT 1
- Location of reported items in source CSS [FEATURE REQUEST] HOT 2
- How to copy paste CSS code and then analyzie via CSSstats? HOT 1
- `/stats` endpoint is accessible and shows infinite loading HOT 2
- Impossible have stats in authenticated pages HOT 6
- Unexpected error occured HOT 1
- Remove CSS field in stats response for the API
- Feature Rewu
- Adding custom user agent to request HOT 1
- Blank page when trying to analyze a certain css file HOT 8
- [BUG] Failing to collect selectors with declaration that only has custom properties HOT 3
- Failing URLs
- Failing URL
- No longer maintained? HOT 2
- The website is crashed after typing a url address HOT 1
- Skins section appears twice
- Export found values as JSON HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cssstats.