techwatching.dev · Jul 11, 2023
The document.fonts object features a ready property which is a Promise representing if fonts have been loaded.
To get the last N characters of a string, call the `slice` method on the string, passing in `-n` as a parameter, e.g. `str.slice(-3)` returns a new string containing the last 3 characters of the original string.
Misko Hevery, creator of AngularJS, recently announced the beta availability of Qwik, his new web framework. Qwik claims to build applications that feel fast regardless of application size. In most ca
To sort an array of objects by a boolean property, call the `sort()` method on the array, passing it a function. In the function, convert the 2 boolean values to numbers and subtract the first number from the second.
Log messages between pages and iframes or pop-ups. Tagged with debugging, debug, webdev.
window.postMessage allows for sending data messages between two windows/frames across domains. Essentially window.postMessage acts as cross-domain AJAX between windows/frames.
Post found in Make Things