UI / UX
November 29, 2019
Detecting Change in Playing Subtitles Text for 〈video〉Element
Sometimes we would like to detect when the subtitles change in the playing video. This can be done by listening to the cuechange event on the 〈track〉element.
November 28, 2019
Preserving Context of this Inside AJAX Response Callbacks in jQuery
It is very common to access current this context inside jQuery AJAX's response callbacks (success or error). This tutorial describes 3 ways of doing this.
November 25, 2019
Checking whether Page is Opened / Active in Browser Tab
The Page Visibility API can be used to check whether a browser tab is active or not, i.e. if the page is in view or hidden from view.
November 18, 2019
November 17, 2019
November 16, 2019
List of nodes returned by querySelectorAll() can be looped through using the forEach() method of the returned NodeList object.
November 15, 2019
Differences between 〈script type=module〉and〈script〉
November 13, 2019
Options of a dropdown 〈select〉element can be looped over its options property. This property gives a list of all 〈option〉elements inside it.
November 10, 2019
What is script type=module ?
November 9, 2019
How to Prevent Disqus Comments System from Slowing Page Speed & Performance
Loading Disqus' script files and comments on page load can lower down speed and performance of the page, specially in mobiles. A solution would be to use an Intersection Observer to lazily load Disqus.
November 6, 2019
November 4, 2019
November 2, 2019
How to write Immediately-invoked / Anonymous Async Functions (IIFE)
An anonymous async function can be defined using the Immediately-invoked Function Expression pattern for asynchronous functions.
October 31, 2019
October 28, 2019
October 26, 2019
How to Prevent Form Validation on Page Load & While Typing on Input Field (HTML Constraint Validation API)
October 23, 2019
How to Remove Duplicates from an Array using the Set Datatype
October 20, 2019
Function parameters can be initialized with a default value in the parameter list itself using ES6 default parameters.
October 18, 2019
The Number() method can be used to convert a string containing numeric characters to a number upon which mathematical operations can be done.
October 17, 2019
The Math.sign() is a new method introduced in ES6 that can be used to find whether a number is positive or negative or a zero.
© UsefulAngle.com 2016 - 2020. All code MIT license.
UsefulAngle on Twitter
UsefulAngle on Facebook