Currently browsing AJAX and Fetching Data
Creating an Autocomplete Search Feature Using Vanilla JavaScript
Autocomplete search is a powerful feature often used in search fields to provide real-time suggestions as users type. We’ll build…
Ping a Remote PHP File and Store Data in a MySQL Database with JavaScript
Recently, I needed to store details in a remote database using JavaScript. The straightforward approach was to send a GET…
How to Measure Page Loading Time with JavaScript
This approach demonstrates how to measure the loading time from the moment a user clicks on a link until the…
A simple JavaScript suggestion autocomplete app
These days, I’ve been working on building a prediction search engine for real estate websites. I started with something small,…
How to set up your own Google CrUX report
As part of decommissioning the Core Web Vitals report from Lighthouse, here’s how the CrUX report has been built. If…
Check DNS records in bulk using JavaScript
If you’re a web developer or network administrator, you know that DNS records play a crucial role in ensuring that…
How to get content from another website using JavaScript
Here’s the scenario: One of my websites is static, and I need to maintain a changelog both on the website…
Demystifying JavaScript history.back() and history.go() methods
One of my clients needed his online shop customers to be able to go back several steps with one click…
tail.select takeover and update
I have been using the tail.select library on 200+ WordPress websites for more than 2 years. That number is growing,…
tail.select
HTML Select Fields as beautiful as never before tail.select is back: Create beautiful, functional and extensive (Multi) Select Fields with…
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 hovered…
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…
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…
How to Populate OpenStreetMap with Foursquare Venues/Amenities
First of all, we need a Foursquare app and a client ID and secret. Head over to developer.foursquare.com and get…
WordPress Responseless XHR Request Using JavaScript
A responseless XHR (POST) request is a request which does not require any user feedback, such as storing post views…
End of an Era: Travel SEO
I’ll just leave this here for reference purposes and I won’t explain any code, as it’s obsolete and I’m not…
Passing Arguments to External JavaScript Files
This post covers the topic of passing arguments to external JavaScript files. I want to say up front that there…
Convert jQuery.get() to Vanilla JavaScript
In the latest iteration of my YouTube Playlist Player plugin, I decided to remove all jQuery dependencies. I replaced the…
How to replace jQuery.ajax() with vanilla JavaScript in WordPress
In an effort to remove all jQuery dependency from one of my plugins, I decided to turn all jQuery.ajax() requests…
Same-Origin AJAX Request Using Vanilla JavaScript
This JavaScript function will send an AJAX request - GET or POST - with no third-party dependencies. I find it…