In this article, we will discuss how to lazy loading CSS and Javascript files to improve web page speed by, including important considerations. We will adopt a method which the files targeted for lazy loading are loaded when the user scrolls. Advantages of Lazy Loading While visitors to this article may already be familiar with […]
Posts in August 2023
[JavaScript]How to add multiple event listeners to multiple elements
In this article, we will discuss how to add an event listener to multiple elements, how to add multiple event listeners, and how to add multiple event listeners to multiple elements using plain JavaScript. Desired outcome If you want to add multiple event listeners to multiple elements, you can achieve this using jQuery as below. […]