Currently browsing jQuery

Monday, May 16, 2022

How to check scroll depth using JavaScript

This function checks after each scroll event to see if a visitor has achieved certain scroll depth milestones. In the…

Monday, January 15, 2018

Encapsulation: Private and Public Methods

When it comes to developing APIs, self documenting code is very important, in order to simplify users’ effort in filtering…

Friday, January 12, 2018

Self Documenting Flexible Parameters

Changing the number of JavaScript function parameters can be unproductive because of the need to update other code calling that…