The Screen Wake Lock API rules. If you need your app to keep the screen on, this API is comparatively simple to use and works in every browser.
Peter Kröner
Developer ✨ edutainment ✨ Shitposting about #javascript and vanilla #webdev. Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies.
Also at sirpepe.bsky.social on bluesky
Posts
Developer ✨ edutainment ✨ Shitposting about # javascript and vanilla # webdev . Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at sirpepe.bsky.social on bluesky
Developer ✨ edutainment ✨ Shitposting about # javascript and vanilla # webdev . Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at sirpepe.bsky.social on bluesky
Developer ✨ edutainment ✨ Shitposting about # javascript and vanilla # webdev . Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at sirpepe.bsky.social on bluesky
Developer ✨ edutainment ✨ Shitposting about # javascript and vanilla # webdev . Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at sirpepe.bsky.social on bluesky
Wait, what? There is a way to disable certain web component features via a static class field? Just randomly stumbled upon this in the specs. Can't find much documentation, but it works in Chrome and Firefox at least.
👉 https://html.spec.whatwg.org/multipage/custom-elements.html#dom-customelementregistry-define
Developer ✨ edutainment ✨ Shitposting about # javascript and vanilla # webdev . Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at sirpepe.bsky.social on bluesky
Developer ✨ edutainment ✨ Shitposting about # javascript and vanilla # webdev . Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at sirpepe.bsky.social on bluesky
Developer ✨ edutainment ✨ Shitposting about # javascript and vanilla # webdev . Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at sirpepe.bsky.social on bluesky
Developer ✨ edutainment ✨ Shitposting about # javascript and vanilla # webdev . Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at sirpepe.bsky.social on bluesky
Moar @workingdraft@podcasts.social - diesmal mit @deadparrot@mastodon.social und @muhdiekuh@ruhr.social zu React und TypeScript 🔥
Developer ✨ edutainment ✨ Shitposting about # javascript and vanilla # webdev . Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at sirpepe.bsky.social on bluesky
Developer ✨ edutainment ✨ Shitposting about # javascript and vanilla # webdev . Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at sirpepe.bsky.social on bluesky
Aufnahme @workingdraft@podcasts.social mit @Schepp@mastodon.social - es gibt wieder einen Browser-News-Roundup!
Developer ✨ edutainment ✨ Shitposting about # javascript and vanilla # webdev . Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at sirpepe.bsky.social on bluesky
Developer ✨ edutainment ✨ Shitposting about # javascript and vanilla # webdev . Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at sirpepe.bsky.social on bluesky
🤢 Behold! The most broken #CSS that still sort of works!
I wondered why CSS.supports("filter", "blur(") returned true. Well, it turns out that a standard-conforming CSS parser does not distinguish between } and EOF or between ) and EOF. And filter function arguments are all optional. So ending the stylesheet with "blur(" has the same effect as "blur(0px)" with all braces properly closed.
The whole story: @sir_pepe@mastodon.social
In Action: https://codepen.io/SirPepe/pen/ByLBGrJ?editors=0100
CSS is awesome.
Developer ✨ edutainment ✨ Shitposting about # javascript and vanilla # webdev . Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at sirpepe.bsky.social on bluesky
Developer ✨ edutainment ✨ Shitposting about # javascript and vanilla # webdev . Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at sirpepe.bsky.social on bluesky
🙋 Ladies, gents, and dear non-binary pals: I could really use some work. Here's what I do best:
- Workshops: entertaining deep dives into JS, TS, web components, frontend performance, general vanilla webdev
- Development: performance-oriented vanilla frontends & refactoring of impenetrable legacy dumpster fires (esp. React, CSS)
- DevRel: yapping & writing about anything related to web frontends
- General coaching & code review for frontend technologies
Get in touch at peter@peterkroener.de!
Developer ✨ edutainment ✨ Shitposting about # javascript and vanilla # webdev . Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at sirpepe.bsky.social on bluesky
Developer ✨ edutainment ✨ Shitposting about # javascript and vanilla # webdev . Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at sirpepe.bsky.social on bluesky
The Incredible Overcomplexity of the Shadcn Radio Button
👉 https://paulmakeswebsites.com/writing/shadcn-radio-button/
Developer ✨ edutainment ✨ Shitposting about # javascript and vanilla # webdev . Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at sirpepe.bsky.social on bluesky
Developer ✨ edutainment ✨ Shitposting about # javascript and vanilla # webdev . Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at sirpepe.bsky.social on bluesky
TIL: you don't need canIUse.com or ChatGPT,
document.implementation.hasFeature() has you covered!
Specs: https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature 🤡
Developer ✨ edutainment ✨ Shitposting about # javascript and vanilla # webdev . Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at sirpepe.bsky.social on bluesky
Developer ✨ edutainment ✨ Shitposting about # javascript and vanilla # webdev . Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at sirpepe.bsky.social on bluesky
Gestern Aufnahme von @workingdraft@podcasts.social mit @muhdiekuh@ruhr.social zum Speaker-Dasein auf Konferenzen. Es ist laaaaaang geworden. Release ist am am 29. Oktober 🎙️