As much as I dislike Gutenberg, mostly because of the amount of duplicated work it makes you do, there are times when it would be nice to have it for some things but not for others.
While researching...
A question that I've seen frequently in Quora and elsewhere since the Gutenberg editor was announced a few years ago was how to disable it and keep the existing, now classic, editor.
Rather than...
I don't hear about this very often but once in a while, I will hear about building print stylesheets so that web pages will look exactly the same in print as they do on screen.
While I think the idea...
Thank you to Rowan Merewood for his patient explanation and review of this post.
Client Hints are a content negotiation tool and can help with making responsive images easier to work with and give...
When researching client hints, I came across an interesting use case for dynamically inserting meta tags on a Handlebars template based on the route I'm accessing.
The different pages of the...
Note: #
The Feature-Policy header has been renamed to Permissions-Policy and browsers will soon start implementing the change. The document.featurePolicy Javascript object will also change to...
I've told myself for a while that I would learn how to write and use tests for front-end code.
Most of the code and tutorials I've seen are written for backend code. But using tools like Playwright...
Normally, only some elements have an aspect ratio, for example, images. For them, if only the width, or the height, is specified, the other is automatically computed using the intrinsic aspect...
Because Typescript is a superset of Javascript, we can use Typescript to validate regular Javascript files.
Make sure your file structure works
Install and Configure Typescript
Add Lint command to...
One thing I've always wanted to figure out is how to use the clipboard on web applications so we can copy and paste it into the app.
Until now, we can use document.execCommand to interact with the...