Search

Nalezeno "Blog": 1889

How to Determine a JavaScript Promise’s Status


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


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


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


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


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


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


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...

Help choose the syntax for CSS Nesting


CSS Nesting is making the rounds yet again. Remember earlier this year when Adam and Mia put three syntax options up for a vote? Those results were tallied and it wasn’t even even close. Now there’s another chance … Help choose the syntax for CSS Nesting originally published...

PHP Jet - Architektura - microservices, moduly a MVC


Úvod Především díky že jste si v tomto možná trochu hektickém předvánočním čase udělali čas na tento článek. Díky diskuzními příspěvku jednoho z vás (díky kolego a zdravím ;-) ) jsem si uvědomil, jak lze dobře objasnit architekturu a celou myšlenku a filozofii PHP Jet. Mluvím hodně o modularitě...

Setting up a screen reader testing environment on your computer


Sara Soueidan with everything you need, from what screen reading options are out there all the way to setting up virtual machines for them, installing them, and confguring keyboard options. It’s truly a one-stop reference that pulls together disparate … Setting up a screen reader...

ChatGPT - Umělá inteligence programuje podle textového zadání v češtině


Jistě jste na ChatGPT v poslední době narazili. Jedná se o umělou inteligenci, kterou jsem požádal, aby se vám blíže představila sama: Jsem Assistant, velký jazykový model vyvinutý společností OpenAI. Nemám fyzickou podobu, jsem pouze digitální entity, která je schopna reagovat na vaše dotazy...

PHP Jet vs Laravel


Úvod V první řadě chci říct, že nemám rád to čemu se dnes říká „hejtování“ – tedy kritizování jen pro kritizování. Je důležité se navzájem respektovat a v rámci tohoto respektu jako správný technici diskutovat o problémech. To je běžná část technické práce a lidského pokroku. Bez konfrontace...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace