Search
Pohlídejte si kompatibilitu napříč různými JavaScripty
27.3.2024
Web runtime-compat.unjs.io sleduje kompatibilitu API mezi různými runtime JavaScriptu, protože dnes už to dávno není jen Node.js. Sledujte, ať vás nic nepřekvapí. Projekt je ve vývoji a data zatím nemusí být zcela přesná
Znáte Apache ECharts?
20.3.2024
ECharts je javascriptová knihovna pro tvorbu grafů. Nedávno vyšla ve verzi 5.5 (přehled novinek). Pochází z úspěšné dílny Apache. Již galerie příkladů naznačí, že se nejedná o malý projekt a možností najdete opravdu…
I’m So Old: Web Edition
18.3.2024
Time can be a funny thing. I still remember discovering HTML, CSS, and JavaScript coding. I still remember my first college programming course. I still remember my first day at my first coding job, then my first day at my second coding job, and then my first day at Mozilla. I still remember...
Vyšel Speedometr 3, změřte si rychlost vašeho prohlížeče
15.3.2024
Na stránce browserbench.org/Speedometer3.0 najdete novou verzi nástroje, který změří rychlost vašeho prohlížeče, resp. jeho jádra. Nástroj je open source a vytvořili ho společně vývojáři známých prohlížečů. Test měří rychlost reakcí webových aplikací na…
Deno představuje JSR – JavaScript Registry
5.3.2024
O Denu jsme psali, je s námi již více jak tři roky. Podobně jako je pro Node.js důležité npm, bude mít Deno svého správce javascriptových modulů s názvem JSR (zkratka JavaScript Registry). JSR…
Detect Caps Lock with JavaScript
6.2.2024
Anyone is capable of having their caps lock key on at any given time without realizing so. Users can easily spot unwanted caps lock when typing in most inputs, but when using a password input, the problem isn’t so obvious. That leads to the user’s password being incorrect, which is...
Fixing Cumulative Layout Shift Problems on DavidWalshBlog
24.1.2024
Over 50 thousand developers visit DavidWalshBlog every month from around the world to learn JavaScript tricks and fix problems in their code. Unfortunately, some of them have a slow experience on the site. David tracks the performance of his Core Web Vitals and overall performance with Request...
Date.now()
17.1.2024
Ask any software engineer and they’ll tell you that coding date logic can be a nightmare. Developers need to consider timezones, weird date defaults, and platform-specific date formats. The easiest way to work with dates is to reduce the date to the most simple format possible — usually...
Extract a Number from a String with JavaScript
16.1.2024
User input from HTML form fields is generally provided to JavaScript as a string. We’ve lived with that fact for decades but sometimes developers need to extract numbers from that string. There are multiple ways to get those numbers but let’s rely on regular expressions to extract those...
Connect Kit Exploit Sparks Criticism of Ledger’s Security Framework
15.12.2023
On Dec. 14, 2023, Ledger’s Connect Kit, a Javascript library for wallet connectivity, suffered a significant exploit. This incident, which was contained within two hours, has brought forth a number of criticisms of Ledger’s security practices. Ledger Exploit Elicits Mixed Reactions From...
AutoSave with VSCode
23.10.2023
Visual Studio Code has taken the crown of most used text editor, at least in JavaScript spheres. VSCode is fast, feature-filled, and supports thousands of plugins to boost productivity. Developers can also tweak hundreds of settings to enrich functionality. One such feature is the autoSave feature....
How to Detect Failed Requests via Web Extensions
2.10.2023
One of the best things that ever happened to t he user experience of the web has been web extensions. Browsers are powerful but extensions bring a new level of functionality. Whether it’s crypto wallets, media players, or other popular plugins, web extensions have become essential to every...
Sum an Array of Numbers with JavaScript
7.9.2023
It’s rare that I’m disappointed by the JavaScript language not having a function that I need. One such case was summing an array of numbers — I was expecting Math.sum or a likewise, baked in API. Fear not — summing an array of numbers is easy using Array.prototype.reduce!...
JavaScript waitFor Polling
14.8.2023
As more of the JavaScript developers write becomes asynchronous, it’s only natural to need to wait for conditions to be met. This is especially true in a world with asynchronous testing of conditions which don’t provide an explicit await. I’ve written about waitForever...
queryLocalFonts
11.8.2023
One of the larger downloads when requesting a webpage are custom fonts. There are many great techniques for lazy loading fonts to improve performance for those on poor connections. By getting insight into what fonts the user has available, we can avoid loading custom fonts. That’s where...
Use XHR/fetch Breakpoints!
7.8.2023
Web debugging tools are so incredibly excellent these days. I remember the days where they didn’t exist and debugging was a total nightmare, even for the simplest of problems. A while back I introduced many of you to Logpoints, a way to output console.log messages without needing to change...
WDRL — Edition 313: Native URL parse check, HTML popovers, and native loading states in JavaScript.
17.7.2023
Hey,
David Cain has a lot of very good thoughts out there on his blog. When I read the current article »don’t forget to swim now and then«, I wholeheartedly agreed to many aspects in it. We people strive for activities our bodies and brains adapted to over eons, while we struggle a lot with modern...
URL.canParse
17.7.2023
Parsing of URLs on the client side has been a common practice for two decades. The early days included using illegible regular expressions but the JavaScript specification eventually evolved into a new URL method of parsing URLs. While URL is incredibly useful when a valid URL is provided,...
JavaScript closest
5.7.2023
When it comes to finding relationships between elements, we traditionally think of a top-down approach. We can thank CSS and querySelector/querySelectorAll for that relationship in selectors. What if we want to find an element’s parent based on selector? To look up the element tree and find...
JavaScript: Reverse Arrays
26.6.2023
Manipulating data is core to any programming language. JavaScript is no exception, especially as JSON has token over as a prime data delivery format. One such data manipulation is reversing arrays. You may want to reverse an array to show most recent transactions, or simple alphabetic sorting....