Currently browsing JavaScript

JavaScript
Ciprian on Thursday, May 20, 2021 — 1,054 Views

JavaScript Drag & Drop

Here’s a nice list of plain JavaScript dragging and dropping solutions. They are minimal, as they serve as proof of concept, and they [...]

JavaScript
Ciprian on Monday, May 17, 2021 — 822 Views

JavaScript Character Counter for Text Areas

A while ago, I had to implement a character counter for a business listing directory. The description field was supposed to hold about 400 [...]

Carbon: Basic Syntax Highlighting
Ciprian on Tuesday, May 11, 2021 — 919 Views

Carbon: Basic Syntax Highlighting with Zero Overhead Using JavaScript

If you have ever used PrismJS or CodeMirror or any other syntax highlighter solution, you’ll know it adds lots of dependencies bases [...]

JavaScript Post Carousel
Ciprian on Tuesday, April 27, 2021 — 891 Views

How I Created My Homepage JavaScript Post Carousel

My homepage now features a JavaScript section of 4 featured posts. Notice the official JavaScript yellow colour 😊 Here’s how I did [...]

JavaScript
Ciprian on Monday, April 26, 2021 — 1,007 Views

🍪 How to Expire localStorage Items and Replace Cookies

I don’t use 🍪 cookies anymore, I think they are too… rigid. I use localStorage items. By default, they don’t expire [...]

tail.select npm Stats
Ciprian on Tuesday, April 6, 2021 — 1,218 Views

tail.select takeover and update

I have been using the tail.select library on 200+ WordPress websites for more than 2 years. That number is growing, as the product is a [...]

tail.select.js
Ciprian on Tuesday, March 30, 2021 — 78 Views

tail.select

HTML Select Fields as beautiful as never before tail.select is back: Create beautiful, functional and extensive (Multi) Select Fields with [...]

IntersectionObserver
Ciprian on Friday, March 12, 2021 — 1,498 Views

How I added a neat effect in 30 lines using IntersectionObserver

This is something I’ve always wanted to add to my theme, but I was afraid of the impact on the Core Web Vitals. As you scroll down, [...]

JavaScript
Ciprian on Tuesday, February 9, 2021 — 3,400 Views

How to Get and Set Query Parameters From URL

Here’s two ways to get (and set) query parameters from URL. I’ll add some real life examples in order to understand their [...]

Instant Loading in WordPress
Ciprian on Tuesday, January 19, 2021 — 1,161 Views

Thoughts on Instant Loading in WordPress

If you are familiar with the instant loading concept, you’ll know it’s about faster subsequent page loads by prefetching [...]

JavaScript
Ciprian on Wednesday, December 2, 2020 — 3,899 Views

How to Create a Price Range Slider Using Vanilla JavaScript

All JavaScript range sliders are hacks or workarounds. Because there’s no native HTML element for a range slider (only a single value [...]

JavaScript
Ciprian on Wednesday, December 2, 2020 — 1,034 Views

How to Create a JavaScript Typewriter Using Vanilla JavaScript

This was done for a client, and I do not recommend it as it uses setTimeout(). Anything using setTimeout() or setInterval() slows down the [...]

Privacy Policy