Native Image Lazy-Loading: loading-attribute-eagle-polyfill

Today, Rick Viscomi noted that some sites have set eagle – instead of eager – as the value for Native Image Lazy-Loading:

While this is most likely a classic case of #damnyouautocorrect (instead of jokingly being a LOTR/Scrubs reference), that didn’t keep Jay Phelps from creating loading-attribute-eagle-polyfill to cater for those small mishaps:

A polyfill for <img loading="eagle" />. Displays an America Eagle as the placeholder of the image while the your real images are still loading.

LOL 😁 β€” I love the internet.

Here’s a code example on how to use, if you ever were to use it in the first place:

<head>
  <script src="https://unpkg.com/loading-attribute-eagle-polyfill/loading-attribute-eagle-polyfill.js"></script>
</head>
<body>
  <!-- Here's an example URL that artificially delays the src so you can see the proud Eagle -->
  <img
    loading="eagle"
    src="https://deelay.me/2000/https://img.webmd.com/dtmcms/live/webmd/consumer_assets/site_images/article_thumbnails/other/cat_relaxing_on_patio_other/1800x1200_cat_relaxing_on_patio_other.jpg"
    width="300"
    height="200"
  />
</body>

loading-attribute-eagle-polyfill

ℹ️ Remember Native Image Lazy Loading being way too eager? Chrome recently updated the thresholds and are backporting the changes back to Chrome version 79:

If PHP were British

When Rasmus Lerdorf first put PHP together, he opted for that bastard dialect of the Queen’s English commonly referred to as “US English”. PHP developers in Britain have been grumpy about this ever since. What was he thinking? And more importantly, how do we undo this travesty?

An attempt to adapting the PHP syntax to the words of Shakespeare. The resulting syntax is hilarious. Instead of:

[php]
if ($condition) {
// Code here
} else {
// Code here
}
[/php]

you’d get:

[php]
perchance (Β£condition) {
// Code here
} otherwise {
// Code here
}
[/php]

Ha! If PHP were British →

/via @azertyke