Search
You Can Label a JavaScript `if` Statement
30.4.2021
Labels are a feature that have existed since the creation of JavaScript. They aren’t new! I don’t think all that many people know about them and I’d even argue they are a bit confusing. But, as we’ll see, labels can …
The post You Can Label a JavaScript `if` Statement appeared first...
How to Monitor Core Web Vitals and Take Action with Raygun
29.4.2021
Raygun is an error and performance monitoring software for websites and mobile apps. In the case of websites, you install their JavaScript snippet onto your site, which takes 2 seconds, and now you’ve got monitoring in place. Why? Well now …
The post How to Monitor Core Web Vitals...
Regular Expression Match Groups
26.4.2021
Regular expressions are incredibly powerful but can be difficult to maintain. They’re a skill you learn on the job and, when the suits walk by, make you look incredibly smart if you have a few up on your screen. How can we solve the maintainability problem? With a match groups, as Addy Osmani...
Collective #658
22.4.2021
Spline Tutorial * Awesome-selfhosted * Content-aware image resizing in JavaScript * Kallithea
The post Collective #658 appeared first on Codrops
Object.entries
20.4.2021
Navigating and managing data structures is a really important skill for every level of engineer to have and improve upon. Over the years, the JavaScript language has continued to provide more methods for managing data structures, from Object.keys to Object.values and so on. One of my favorites...
CSS Smooth Scroll
19.4.2021
Improving the user experience of web applications has always been a priority of mine. I always come back to the same though I’ve had for 20 years: “users expect a web app to work — let’s make the app a joy to use.” Over the years we’ve employed JavaScript...
How to Build a FullStack Serverless HN Clone With Svelte and Fauna
15.4.2021
Svelte is a free and open-source front end JavaScript framework that enables developers to build highly performant applications with smaller application bundles. Svelte also empowers developers with its awesome developer experience.
Svelte provides a different approach to building web apps...
Five Top Quality APIs
13.4.2021
It’s easy to think about creating beautiful UIs for presenting data when you don’t consider the effort that goes into gathering and serving the data itself. Here’s the thing — thanks to apilayer, you can focus on your UIs and not the pain of API creation. No need to worry...
Intl.NumberFormat
13.4.2021
Formatting numbers on the client side is an important task, especially when you consider how much raw API usage is in play these days. What’s also important is ensuring those numbers are meaningful to users, no matter where they are in the world, especially if you’re an eCommerce...
How to Leverage the Fullscreen API… and Style It
12.4.2021
Let’s look at the Fullscreen API in JavaScript. It allows you to do a pretty powerful thing: full screening exactly one particular element you want it to. Not only that, but CSS can help as well with a special selector.…
The post How to Leverage the Fullscreen API… and Style It appeared...
Detect CSS Overflow Elements
8.4.2021
Every once in a while you encounter a CSS annoyance that takes some cleverness to discover. One such case rears its ugly head in unwanted and unexpected scrollbars. When I see unwanted scrollbars, I usually open developer tools, click the element inspector, and hover around until I find...
Coordinating Svelte Animations With XState
7.4.2021
This post is an introduction to XState as it might be used in a Svelte project. XState is unique in the JavaScript ecosystem. It doesn’t keep your DOM synced with your application state, nor does it help you with asynchrony, …
The post Coordinating Svelte Animations With XState appeared...
Creating a Smart Navbar With Vanilla JavaScript
5.4.2021
Sticky, or fixed, navigation is a popular design choice because it gives users persistent access to navigate the site. On the other hand, it takes up space on the page and sometimes covers content is a way that’s less than …
The post Creating a Smart Navbar With Vanilla JavaScript appeared...
The Deno Company
2.4.2021
I’m sure a lot of you are paying attention to Deno anyway, the next-gen JavaScript-on-the-sever project from Node creator Ryan Dahl, especially after dropping all these candid regrets about what happened in Node. But perhaps your paying more attention now …
The post The Deno Company...
VS Code node:console Fix
23.3.2021
I’ve been using Microsoft’s Visual Studio Code text editor for years with great success. The app has always been stable, flexible, and the best compliment I can give it: an afterthought. Recently, however, every time I added a console.log to a JavaScript file, VS Code would add import...
Use Logpoints!
22.3.2021
There’s sometimes a tribal attitude about how web developers should be debugging their code and solving problems. There’s the console.log loyalists, then there’s the debugger/breakpoint maximalists. I worked on the Firefox DevTools debugger for years and I can tell you...
Collective #653
18.3.2021
Debugging layout shifts * Aladino * Haikei * Rethinking the JavaScript ternary operator
The post Collective #653 appeared first on Codrops
Handling User Permissions in JavaScript
17.3.2021
So, you have been working on this new and fancy web application. Be it a recipe app, a document manager, or even your private cloud, you‘ve now reached the point of working with users and permissions. Take the document manager …
The post Handling User Permissions in JavaScript appeared first...
Table of Contents with IntersectionObserver
11.3.2021
If you have a table of contents on a long-scrolling page, thanks to, say, position: fixed; or position: sticky;, the IntersectionObserver API in JavaScript is the perfect companion to highlight items in the table of contents when corresponding content …
The post Table of Contents with...
Insert Cursor at Any Position at Command Line
11.3.2021
As much as I enjoy writing lengthy pieces of JavaScript APIs, techniques, and other tech brilliance, I very much enjoy providing people quick tips to make their daily dev lives better. This is one such post. Oftentimes I’m working with long command line directives, and as you can imagine,...