Currently browsing JavaScript

Monday, September 25, 2023

Segmented Horizontal Bar Chart (Graph) Using Vanilla JavaScript

If you're looking to create a segmented (stepped) horizontal bar chart using nothing but vanilla JavaScript, you're in luck!

Friday, September 8, 2023

A simple JavaScript suggestion autocomplete app

These days, I’ve been working on building a prediction search engine for real estate websites. I started with something small,…

Wednesday, July 12, 2023

A collection of modern native JavaScript object and array utilities

Arrays Chunk Creates an array of elements split into groups the length of size. Compact Creates an array with all…

Tuesday, May 30, 2023

How to set up your own Google CrUX report

As part of decommissioning the Core Web Vitals report from Lighthouse, here’s how the CrUX report has been built. If…

Friday, April 28, 2023

JavaScript Canvas Sine Wave

The code below generates a sine wave with a specified amplitude, frequency, and phase. The wave is drawn on the…

Sunday, April 23, 2023

Check DNS records in bulk using JavaScript

If you’re a web developer or network administrator, you know that DNS records play a crucial role in ensuring that…

Sunday, April 23, 2023

How to replace Slider Revolution with Flickity and gain 50+ performance

This is a short story about website performance optimization. A recent project of mine involved optimizing a website, currently scoring…

Sunday, April 23, 2023

Thin Table Pagination: A new addition to my JavaScript repository

I wrote about client-side JavaScript pagination before, but I have never stopped searching for the perfect pagination method, both from…

Friday, March 10, 2023

SEO Crawlability Issue: Resources are formatted as page link

While working on a Semrush audit, I found a new type of crawlability notice: 47 resources¬†are formatted as page link…

Thursday, March 30, 2023

A Repository of Fine JavaScript Libraries and Components

Today, I launched my personal repository of JavaScript libraries and components. All scripts and libraries in this repository have been…

Tuesday, January 10, 2023

StackGrid – A Light Vanilla JavaScript Masonry Grid

Introducing the lightest and most efficient Masonry grid available – StackGrid – powered by pure vanilla JavaScript, no dependencies required.…

Tuesday, December 27, 2022

How to Open Only One Details/Summary Element at a Time

Let’s suppose you want to build a simple accordion or a help section, and you want to use a <details>…