Currently browsing JavaScript

Ciprian on Wednesday, December 2, 2020 — 796 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 [...]

Ciprian on Thursday, October 8, 2020 — 967 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 [...]

Ciprian on Monday, October 5, 2020 — 455 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 [...]

Ciprian on Saturday, October 3, 2020 — 529 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 [...]

Ciprian on Friday, October 2, 2020 — 364 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 [...]

Ciprian on Thursday, October 1, 2020 — 724 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 [...]

Ciprian on Wednesday, September 30, 2020 — 404 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,162 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 — 306 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 — 679 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 — 681 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. [...]

Ciprian on Friday, August 30, 2019 — 2,198 Views

How to Change Page Title Using JavaScript

This JavaScript will modify the text of the browser tab when a visitor focuses or un-focuses the tab. You can display one title when a [...]

Privacy Policy