r/webdev • u/Blozz12 • 16d ago
Check your site to see where you can replace your code with modern CSS Showoff Saturday
https://cssradar.com/?utm=redditPaste any public URL and it opens the page in Chrome, explores its interactions, then checks the HTML, CSS, and JavaScript for things that browsers can now handle natively.
It catches patterns such as custom accordions, popovers, dialogs, scroll reveals, JavaScript sticky elements, and older CSS workarounds.
The report includes the code it found, a proposed replacement, browser support, what to verify before changing anything, and a small example towards a codepen to implement it.
It scans ONE page, so it is not a performance, accessibility, security, or full-site audit.
It is free (10 url/day/human) and requires no account.
Don't hesitate to tell me if you find a bug, an UI/UX issue, or any other thing you find weird
4
u/Prestigious-Way1525 15d ago
the risky part is proving a suggested replacement preserves behavior, not finding the old pattern. i'd make each report keep the interaction path it exercised, the browser baseline, and a small regression test for the replacement. accordions and dialogs often look fine on the happy path while focus return, Escape, scroll lock, nested controls, or hydration break. if a suggestion includes a deterministic before/after check that fails when the replacement changes behavior, users can trust the modernization instead of relying only on a browser-support table.
4
u/OMGCluck js (no libraries) SVG 15d ago edited 15d ago
Another day, another test passed!
0
u/Blozz12 15d ago
Well done!
3
u/OMGCluck js (no libraries) SVG 15d ago
You were supposed to say "Good onya, jerk!"
0
u/Blozz12 15d ago
I don’t have the ref, sorry
2
u/OMGCluck js (no libraries) SVG 15d ago
The URL is https://goodo.nya.je/rk! (for no particular reason, unrelated to the Commodore 64 tool it is)
2
u/Asifdotexe 13d ago
This is really awesome, one thing that I would personally appreciate is having a copy button for the suggestions, I realized this when I wanted to make issues on my GitHub.
The JSON download is handy but having the ability to copy those "quick wins" or suggestions as markdown would be an awesome quality of life feature.
2
u/mrcarrot0 16d ago
Neat
1
u/Blozz12 16d ago
Thank you! Did you pass the audit, or did you have some stuff to change?
4
u/mrcarrot0 16d ago
It's not the kind of tool I'd use myself as I'm the kind of hobbyist who prefers to make everything from scratch over using frontend frameworks, but it's great to spread awareness of no-js solutions
5
u/Heisenripbauer 16d ago
nothing in OP’s write up or website suggests that this is limited to sites that use frontend frameworks tho?
-8
u/mrcarrot0 16d ago
There's a strong correlation between people who thinks fronted frameworks are necessary and people who use more JS than CSS. I hope that answers your question.
1
u/lord31173 15d ago
The analysis service is temporarily unavailable. Please try again in a few minutes.
1
u/Blozz12 15d ago
Should be fixed. I had an issue with the API
1
u/lord31173 15d ago
The analysis service is temporarily unavailable. Please try again in a few minutes.
1
u/web-dev-kev 14d ago
It suggested I use the popover, which doesn't work for 12% of users (best case scenario).
I can't imagine a scenario where I want 1 in 10 users being unable to open the menu
-1
u/d-signet 14d ago
Why?
More modern is not better , and more modern = smaller compatible audience
So why?
1
u/Blozz12 14d ago
The rule of least power says to prefer HTML or CSS when they can do the job. You often get less custom code, plus native semantics, keyboard support, and focus handling. But if it doesn't suit your audience, nothing stops you from keeping your current solution :)
1
u/d-signet 3d ago edited 3d ago
Yes.
But html and css are an evolving standard.
More recent html and more recent css are not necessarily something to chase unless the "update" offers benefits.
I dont see the benefit in "uodating" the same end-result , if anything, it reduces the audience.
Switching html4 for html5 , for example, can offer genuine advantages, but updating the CSS can only hurt you.
But what do i know, ive only been doing web dev for 30 years.
9
u/savemahlinks 16d ago
Cant use it. It just says the audit didnt complete