Currently browsing JavaScript

JavaScript
Ciprian on Wednesday, December 2, 2020 — 1,115 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 — 958 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,319 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 — 654 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 — 717 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 — 493 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,025 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 — 556 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 — 1,582 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 — 449 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 [...]

Unsupported Browser Detection
Ciprian on Wednesday, July 22, 2020 — 971 Views

Switching From JavaScript to PHP for Browser Detection and Avoiding Core Web Vitals Penalties

In the light of the recently introduced Core Web Vitals, I decided to save some script start-up speed and switch to PHP browser [...]

JavaScript Boxed Carousel
Ciprian on Monday, June 15, 2020 — 870 Views

Experiment: JavaScript Boxed Carousel with Progress Indicator

Here's an awesome JavaScript carousel built for a client project, but then scrapped. It definitely has potential for unlimited items. [...]

Privacy Policy