Tutorials Page 18
Vital Web Performance
I hate slow websites. They are annoying to use and frustrating to work on. But what does it mean to be “slow”? It used to be waiting for document load. Then waiting for page ready. But with so many asynchronous patterns in use today, how do...
Remove the Search Input Clear(x) Icon
I really appreciate the amount of different
<input>
elements we've received over the past decade. These elements don't just bring a new semantic advantage, but also provide UI helpers, which in many cases are useful. In a recent case, I found a UI element...5 Awesome JavaScript Promise Tricks
The Promise API changed the game in JavaScript. We went from abusing
setTimeout
s and settling for synchronous operations to doing everything possible to leverage this new async API. Let's check out a handful of awesome Promise API tricks!Cancel a fetch RequestOne problem we...Logical Assignment Operators
I love JavaScript, it's my favorite programming language, but I love dipping into other languages because they offer a new perspective on coding paradigms. There've been syntax additions to JavaScript that I've seen I found interesting (think
??
in optional chaining) and...Match Emojis with Regular Expressions
When experimenting with unicode property escapes, to identify accented letters in strings, it reminded me of a question I had a few years ago: what is the best way to identify and then replace emojis in a string? I first noticed this practice...
Simple Node.js Proxy
When I wanted to refresh my React.js skills, I quickly moved to create a dashboard of cryptocurrencies, their prices, and and other aspects of digital value. Getting rolling with React.js is a breeze --
create-react-app {name}
and you're off and running. Getting the API...Match Accented Letters with Regular Expressions
Regular expressions are used for a variety of tasks but the one I see most often is input validation. Names, dates, numbers...we tend to use regular expressions for everything, even when we probably shouldn't.The most common syntax for checking alphabetic characters is
A-z
but what if...Promise.allSettled
The Promise object has many useful functions like
all
,resolve
,reject
, andrace
-- stuff we use all the time. One function that many don't know about isPromise.allSettled
, a function that fires when all promises in an array are settled, regardless of whether...5 Most Common Developer Portfolio Mistakes
A portfolio site is one of the best marketing and sales tools you as a web developer have in your arsenal. And if it’s set up right, it’ll save you a bunch of time having to: Chase down new clients, Spend time convincing them to work with you,Answer...
Binding Arguments with Bind
One of my favorite and most essential
Function
method isbind
, a function we added to MooTools when it wasn't featured in the JavaScript language itself. We often think of usingbind
to simply bind a method's call to its host object, but did you...