Tuesday, December 5, 2023
Here are two ways to get (and set) query parameters from URL. I’ll add some real life examples in order…
Tuesday, August 2, 2022
All JavaScript range sliders are hacks or workarounds. Because there’s no native HTML element for a range slider (only a…
Monday, May 16, 2022
This was done for a client, and I do not recommend it as it uses setTimeout(). Anything using setTimeout() or…
Tuesday, June 18, 2024
Here’s a neat trick to speed up your initial page loading time when you are using Drift. If you use…
Wednesday, January 18, 2023
Here’s an interesting JavaScript snippet allowing you to set a 24-hour countdown and save its progress between page loads.
Thursday, November 2, 2023
I found this old code I used for an old forum a long time ago, and I decided to bring…
Monday, June 13, 2022
I’ve seen this behaviour on several Russian sites, and it looked really slick, especially when the movement was delayed compared…
Monday, May 16, 2022
In the light of the recently introduced Core Web Vitals, I decided to save some script start-up speed and switch…
Friday, June 3, 2022
This JavaScript will modify the text of the browser tab when a visitor focuses or unfocuses the tab. You can…
Monday, May 16, 2022
Use this tutorial to create phone number links and track/measure views. As phone numbers are clickable (and work) only on…
Monday, May 16, 2022
Here’s a nice overview on why Internet Explorer 11 should be phased out and users blocked from viewing the site…
Monday, May 16, 2022
These JavaScript snippets implement a native hasClass() function (inspired by jQuery and dubbed elementHasClass()), which checks if an element has…