UI / UX
December 21, 2019
The Array.fill() method can be used to fill an array with a specific value, starting from a given index and ending upto another index.
December 19, 2019
December 18, 2019
December 17, 2019
Knowing whether Promise is Completed (either Fulfilled or Rejected) with finally() Callback
The finally() callback can be used to know whether the Promise was settled. We don't care whether it was resolved or rejected.
December 16, 2019
Setting Default Values to Variables if null or undefined (using Nullish Coalescing Operator)
December 15, 2019
What Happens to setTimeout() / setInterval() Timers Running on Inactive Browser Tabs ?
Time delay for setTimeout() / setInterval() methods executing on inactive browser tabs are set to one second regardless of their value defined in code.
December 14, 2019
How to Disable Page Scrolling when Modal Dialog is Opened
When a fixed-position modal dialog is opened, scrollbars on the page can be removed by dynamically setting overflow:hidden CSS for the 〈body〉tag.
December 13, 2019
Disabling Pull-to-Refresh Feature on Mobile Browsers using CSS
Pull-to-refresh feature on mobile browsers that refreshes the page, can be disabled using the overflow-behaviour CSS property.
December 12, 2019
Synchronous / Asynchronous Image Decode using〈img decoding〉Attribute
The "decoding" attribute can be included for an 〈img〉tag to specify whether to decode the image in parallel or along with the rest of the page content.
December 11, 2019
The Object.seal() method seals an object. After an object gets sealed, no new properties can be added to it.
December 10, 2019
The Object.freeze() method can make an object or array immutable. No changes can be made to that object once it gets immutable.
December 9, 2019
Latest CSS Properties and APIs for Web Design in 2020 (VIDEO)
Many next generation CSS properties and APIs have been introduced in browsers lately. These can help in creation of user interfaces that were previously not possible or were difficult to achieve.
December 8, 2019
December 3, 2019
Loading CSS Stylesheet on Demand Through Its disabled Attribute
December 2, 2019
Numeric separators can be used to improve readability of large numbers. For example the number 111111111111111111111111, which is difficult to read, can be alternately written as 111_111_111_111_111_111_111_111
December 1, 2019
Preventing Autofilling the Password Field in HTML Forms
To prevent situations where we would not like the browser to autofill the password field in a form, the autocomplete=new-password attribute can be used.
November 30, 2019
Performance Tip : Learning to Think Beyond the Main Thread (VIDEO)
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 27, 2019
Representing Edits to HTML Pages using〈ins〉&〈del〉Tags
Often there are edits made to documents. In HTML these changes can be highlighted using the 〈ins〉and 〈del〉 tags.
© UsefulAngle.com 2016 - 2020. All code MIT license.
UsefulAngle on Twitter
UsefulAngle on Facebook