How to Check if user is Online or Offline using Offline.js

Offline.js is a JavaScript library to detect if a user is connected to the internet or not. It displays an alert message when the internet connection is lost similar to Facebook and Gmail.

It has different types of themes like – Default, Chrome, Dark, Hubspot, and Side to display alert message.

By default, it uses favicon.ico to check the internet connection but you can change it.

In this tutorial, I show how you can check if user is online or offline using the Offline.js library.

How to Check if user is online or offline using Offline.js

Read more

Load content on Page Scroll using JavaScript and PHP

Data is dynamically loaded on the page when the user reaches the bottom of the page while scrolling.

User doesn’t have to click on any action button to load new records. For doing this require sending AJAX request to fetch data on page scroll.

In this tutorial, I show how you can load content from MySQL database on page scroll using JavaScript and PHP.

Load content on page scroll using JavaScript and PHP

Read more