How to Care For Your Client After Delivering Their Project (In 3 Steps)
The post How to Care For Your Client After Delivering Their Project (In 3 Steps) appeared first on Torque.
Using the Command Line for Automation – Part I Remote Control WordPress with WP-CLI Aliases
The post Using the Command Line for Automation – Part I Remote Control WordPress with WP-CLI Aliases appeared first on Torque.
A Bunch of Options for Looping Over querySelectorAll NodeLists
A common need when writing vanilla JavaScript is to find a selection of elements in the DOM and loop over them. For example, finding instances of a button and attaching a click handler to them.
const buttons = document.querySelectorAll(".js-do-thing");
// There could be any number of these!
// I need to loop over them and attach a click handler.
There are SO MANY ways to go about it. Let’s go through them.
forEach
forEach
is normally for arrays, and interestingly, …
The post A Bunch of Options for Looping Over querySelectorAll NodeLists appeared first on CSS-Tricks.
Why Browsers Download Stylesheets with Non-Matching Media Queries
Say you have a stylesheet linked up like this:
<link href="mobile.css" rel="stylesheet" media="screen and (max-width: 600px)">
But as the page loads, you’re on a desktop browser where the screen is 1753px wide. The browser should just skip loading that stylesheet entirely, right? It doesn’t. Thomas Steiner explains:
it turns out that the CSS spec writers and browser implementors are actually pretty darn smart about this:
The thing is, the user could always decide to resize their window (impacting width, height, …
The post Why Browsers Download Stylesheets with Non-Matching Media Queries appeared first on CSS-Tricks.
Keynote vs PowerPoint: Which Presentation App to Choose?
The ironic inaccessibility of a11y
This resonated with me:
It’s ironic to me that the numeronym “a11y” lacks accessibility: it’s not immediately decipherable by humans who aren’t “in the club”; and, in some fonts, it’s visually indistinguishable from the word “ally” (with lowercase L’s), which can foil searches for clarity.
— Eric Meyer (@meyerweb) November 5, 2018
Because I bet it took me a year after seeing that acronym (“numeronym”, I guess) for the first time to know that was just a stand-in for the …
The post The ironic inaccessibility of a11y appeared first on CSS-Tricks.
Matt Mullenweg Addresses Controversies Surrounding Gutenberg at WordCamp Portland Q&A
How to Evolve Your Blog with the Help of Artificial Intelligence
The post How to Evolve Your Blog with the Help of Artificial Intelligence appeared first on Torque.