Search
How to Determine a JavaScript Promise’s Status
3.1.2023
Promises have changed the landscape of JavaScript. Many old APIs have been reincarnated to use Promises (XHR to fetch, Battery API), while new APIs trend toward Promises. Developers can use async/await to handle promises, or then/catch/finally with callbacks, but what Promises don’t tell...
Detect XR Support with JavaScript
2.1.2023
A few years ago I wrote an article about how to detect VR support with JavaScript. Since that time, a whole lot has changed. “Augmented reality” became a thing and terminology has moved to “XR”, instead of VR or AR. As such, the API has needed to evolve. The presence...
Document.elementFromPoint
30.12.2022
Reacting to events with JavaScript is the foundation of a dynamic experiences on the web. Whether it’s a click event or another typical action, responding to that action is important. We started with assigning events to specific elements, then moved to event delegation for efficiency, but...
Detect Browser Bars Visibility with JavaScript
30.12.2022
It’s one thing to know about what’s in the browser document, it’s another to have insight as to the user’s browser itself. We’ve gotten past detecting which browser the user is using, and we’re now into knowing what pieces of the browser UI users are seeing....
JavaScript print Events
30.12.2022
Media queries provide a great way to programmatically change behavior depending on viewing state. We can target styles to device, pixel ratio, screen size, and even print. That said, it’s also nice to have JavaScript events that also allow us to change behavior. Did you know you’re...
How to Control CSS Animations with JavaScript
27.12.2022
When it comes to animations on the web, developers need to measure the animation’s requirements with the right technology — CSS or JavaScript. Many animations are manageable with CSS but JavaScript will always provide more control. With document.getAnimations, however, you can...
Detecting Fonts Ready
26.12.2022
Knowing when resources are loaded is a key part of building functional, elegant websites. We’re used to using the DOMContentLoaded event (commonly referred to as “domready”) but did you know there’s an event that tells you when all fonts have loaded? Let’s learn how...
Další průšvih na obzoru? Demo Forspoken je spíš varování než reklama
19.12.2022
Konečně jsme dostali možnost zahrát si několikrát odloženou hru Forspoken, příliš radosti nám to ale neudělalo. Její svět je prázdný, souboje nenápadité a grafika zdaleka nevypadá tak dobře jako v prvních trailerech
Další průšvih na obzoru? Demo Forspoken je spíš varování než reklama
19.12.2022
Konečně jsme dostali možnost zahrát si několikrát odloženou hru Forspoken, příliš radosti nám to ale neudělalo. Její svět je prázdný, souboje nenápadité a grafika zdaleka nevypadá tak dobře jako v prvních trailerech
Máte PlayStation 5? Ochutnejte demo Forspoken
9.12.2022
This AI chatbot is either an exploiter's dream or their nightmare
2.12.2022
The crypto community has come across an AI-powered chatbot that can be used to audit smart contracts and expose vulnerabilities
Awesome Demos Roundup #22
26.11.2022
The latest collection of the most creative and inspiring demos and code experiments from around the web
12 Extraordinary Games You'll Want On Your Wishlist Straight Away
25.11.2022
It’s Black Friday, the day on which the entirety of planet Earth entirely takes leaves of its senses and spends all its money on stuff it doesn’t need for 5 percent less than it would have cost yesterday. Planet Earth this year has bought itself an entirely new moon, even though the old one’s fine...
Vrchol drzosti. Ukradli volně dostupné demo a zpeněžili jej na Steamu
24.11.2022
Nezávislý vývojář Tyson Butler-Boschma uchvátil fanoušky hratelným prototypem neoficiální hry o Supermanovi, který nezištně nabízel na internetu zadarmo. K jeho nemalému překvapení ovšem jeho práci někdo nahrál do digitálního obchodu Steam a účtoval si za ni 250 korun. A aby toho nebylo málo, ještě...
How to Internationalize Numbers with JavaScript
21.11.2022
Presenting numbers in a readable format takes many forms, from visual charts to simply adding punctuation. Those punctuation, however, are different based on internationalization. Some countries use , for decimal, while others use .. Worried about having to code for all this madness? Don’t...
Správce hesel 1Password chystá přihlašování přes passkeys, ukázal demo
18.11.2022
Jak bude vypadat budoucnost přihlašování k online službám bez hesel? Správce hesel 1Password zveřejnil jednoduchou ukázku využití tzv. passkeys, na které si to mohou lidé vyzkoušet (je ovšem potřeba mít u služby účet a mít nainstalované rozšíření v prohlížeči)
Vyšlo demo akčního fotbalu Mario Strikers: Battle League
10.11.2022
Locate Empty Directories from Command Line
1.11.2022
As a software engineer that lives too much of his life on a computer, I like keeping my machine as clean as possible. I don’t keep rogue downloaded files and removes apps when I don’t need them. Part of keeping a clean, performant system is removing empty directories. To identify empty...
How to Extend Prototypes with JavaScript
31.10.2022
One of the ideological sticking points of the first JavaScript framework was was extending prototypes vs. wrapping functions. Frameworks like MooTools and Prototype extended prototypes while jQuery and other smaller frameworks did not. Each had their benefits, but ultimately all these years later...
How to Use window.crypto in Node.js
27.10.2022
I’ve been writing a bunch of jest tests recently for libraries that use the underlying window.crypto methods like getRandomValues() and window.crypto.subtle key management methods. One problem I run into is that the window.crypto object isn’t available, so I need to shim it. To use...