Search

Nalezeno "JavaScript": 798

Pohlídejte si kompatibilitu napříč různými JavaScripty


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?


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


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


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


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


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


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()


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


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


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


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


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


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


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


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!


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

URL.canParse


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


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


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

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