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…
Wednesday, November 29, 2023
If you are familiar with the instant loading concept, you’ll know it’s about faster subsequent page loads by prefetching hovered…
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…
Monday, May 16, 2022
This function converts a regular <select> element both into an intented ul/li structure and JSON. It’s light and it’s been…
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.
Monday, May 16, 2022
This was part of a complex drawing project, which is not relevant right now. The idea was to have a…
Monday, May 16, 2022
A while ago, I coded several date countdowns for several promotions. These countdowns went straight inside a third-party popup solution,…
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, May 16, 2022
Google Tag Manager is using its own Closure Compiler behind the scenes to compress the JavaScript and HTML code. It…
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…