Convert inline JS to a data-uri and add
async to the
script element to bypass CSS blocking… Well that’s one of the odder topics I’ve ever seen, and is certainly not for all use cases (but then again, neither is inline JS), but Stoyan Stefanov‘s technique is solid!
Aaannddd, lest we be lulled into loving a Microsoft browser, something like this rears its head… With so much good will going for them lately, shame to see something unnecessary like this pop-up…
Anyone taken a test-drive (or more) with Django? Looks tempting!
Serve local file system folders instead of server-based files for dev work, without any local server running! Pretty f-ing slick! Thanks to Ashley Gullen and Service Workers!
Chris Coyier asks Why would a business push a native app over a website? I read Chris' points sort of like "what can we do to make our PWAs (or just websites) better, so users do not need/want/desire an app over the web", but to me the biggest hurdle is still the user mentality that "if I pick up my phone/tablet and it is not to search for something on the web, then I must need to use an app"... And to me, this is all thanks to Apple, for creating the mindset with their store, and for restricting browser capabilities for so long (partially by blocking any other real browser on their device at all... And how do they still get away with this? Wasn't Microsoft in lots and lots of courtroom battles all over the world about this very thing on Windows PCs???). So, how to we get around that mindset?
defer are great, for what they do:
async files can thus finish loading in any random order, based on how fast they each download, while
defer will retain its loading order, but that loading will start, and thus finish, some time after DOM Interactive (or
$(document).ready(...), whichever helps). But in both cases, these files could, and likely are, blocking other assets from loading. So what if want something even later than that?
Robert Boedigheimer has a nifty little JS function that delays loading to
Speaking of delaying JS `til later, in a recent Vanilla JS podcast, Chris Ferdinandi spoke with Jeremy Wagner about using
requestIdleCallback to delay JS loading until the browser has time to take a breath. I was pretty excited about this idea, until I realized that
IE Safari doesn't support it yet... :-/
And finally, Anna Migas wonders are we our worst enemies?, and in the same vein, Bramus Van Damme reminds us of an old paper written by Sir Tim Berners-Lee and encourages us to embrace The Rule of Least Power... I like it, a lot. It is easy, perhaps even natural, for us to find one way of doing something, and simply rinsing-and-repeating that forever, until something forces us to do it differently. No one is saying go back to all of your old projects and update them for these new ways (though, wouldbe good practice!), but certainly going forward, we can do better!