Detecting Fonts Ready / / No Comments Knowing when resources are loaded is a key part of building functional, elegant websites. We’re used to using the DOMContentLoaded event (commonly referred to as “domready”) but did you know there’s an event that tells you when all fonts have loaded? Let’s learn how to use document.fonts! The document.fonts object features a ready property which is a Promise representing if fonts have been loaded: // Await all fonts being loaded await document.fonts.ready; // Now do something! Maybe add a class to the body document.body.classList.add('fonts-loaded'); Font files can be relatively large so you can never assume they’ve loaded quickly. One simply await from... more → Posted in: JavaScript Tagged with: Detecting, Fonts, Ready
Google Maps Is Ready to Transform the World of Superapps: A Skift Deep Dive – Skift / / No Comments Google Maps Is Ready to Transform the World of Superapps: A Skift Deep Dive Skift Consumers in the West reach almost reflexively for the Google Maps app as the *service* becomes a nearly ubiquitous utility despite a dearth of messaging and … “map app” – Google News… more → Posted in: Interactive Maps Tagged with: Deep, Dive, Google, maps, Ready, Skift, Superapps, Transform, World