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…

Tuesday, May 10, 2022

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…

Tuesday, May 10, 2022

Self Documenting Flexible Parameters

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