Currently browsing JavaScript

Instant Loading in WordPress
Ciprian on Tuesday, January 19, 2021 — 1,374 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 — 5,402 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,347 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 [...]

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

JSONify Dropdown Element Using Vanilla JavaScript

This function converts a regular <select> element both into an intented ul/li structure and JSON. It’s light and it’s been [...]

JavaScript
Ciprian on Thursday, October 8, 2020 — 1,695 Views

Drift Chat: Speed Up Your Page Loading Speed by 3-4 Seconds

Here’s a neat trick to speed up your initial page loading time when you are using Drift. If you use SpeedFactor or GTMetrix to [...]

JavaScript
Ciprian on Monday, October 5, 2020 — 911 Views

24-Hour Countdown with Progress Saving Using Vanilla JavaScript

Here’s an interesting JavaScript snippet allowing you to set a 24-hour countdown and save its progress, so that on the next page [...]

JavaScript
Ciprian on Saturday, October 3, 2020 — 953 Views

How to Draw on Canvas and Save the Result Using Vanilla JavaScript

This was part of a complex drawing project, which is not relevant right now. The idea was to have a fully configurable canvas, where you [...]

JavaScript
Ciprian on Friday, October 2, 2020 — 663 Views

Date Countdown Using Vanilla JavaScript

A while ago, I coded several date countdowns for several promotions. These countdowns went straight inside a third-party popup solution, so [...]

JavaScript
Ciprian on Thursday, October 1, 2020 — 1,370 Views

Random Imgur Images Using Vanilla JavaScript

I found this old code I used for an old forum a long time ago and I decided to bring it up-to-date and see if it still works. Turns out is [...]

JavaScript
Ciprian on Wednesday, September 30, 2020 — 760 Views

I Fixed Font Awesome JavaScript Logo

The JavaScript logo colours are yellow (#f7df1e) and black (#000000). Font Awesome SVG Icon The problem with the Font Awesome JavaScript [...]

Facebook Messenger Customer Chat Plugin
Ciprian on Tuesday, September 29, 2020 — 2,021 Views

How to Add the Facebook Messenger Customer Chat to Your Site Using Google Tag Manager

Google Tag Manager is using its own Closure Compiler behind the scenes to compress the JavaScript and HTML code. It does not support ES6, [...]

Google Article Schema
Ciprian on Monday, July 27, 2020 — 572 Views

How I Improved My JavaScript Blog Articles Schema

I use WordPress, but I don’t use a specific SEO plugin. Everything is done inside the theme. Last week I improved my blog article [...]

Privacy Policy