A few people has trouble getting the new version of squoosh.app. Here's what happened:
Part 1: I accidentally changed the URL of the service worker. That was just a dumb mistake developers.google.com/web/fundamenta…

I fixed that, but folks still weren't finding out about the update…
Squoosh has had an "update available" message since the start. It pops up when there's a service worker update. The code that handles this was split into its own module, since it isn't needed for the first interaction…
However, due to a bug, this file wasn't available offline. We didn't spot this, as the code in that module is all about handling updates, which doesn't happen when you're offline…
Anyway the new version of Squoosh has a completely different build system (Rollup rather than webpack), and that module changed url. Because it's a JAMstack site, the old files were gone, so users on the old version were getting a 404 instead of the module which handled updates…
I wrote about this issue back in July. "This can cause all sorts of exciting breakages that we don't often consider." lol thanks past-jake.

jakearchibald.com/2020/multiple-…
Anyway, as a quick solution, I added that module back into the new build github.com/GoogleChromeLa…. Phew.
Other than that fuckup, I'm really happy with the new build. Using Rollup gave me more control over what's going on. Even though the new homepage is more complex, we're interactive in 13k, compared to 16k in the old version.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Jake Archibald

Jake Archibald Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @jaffathecake

20 Aug
Whenever I need to clamp a number between a `min` and a `max`, it takes me ages to convince myself this implementation is correct.

But yeah, it's easy! I just want the min of the max of the num and the min and the max. num = Math.min(Math.max(num, min), max);
The min of the max of the num and the min and the max. A licky boom boom down.
"@jaffathecake I actually don't have a problem reading that because I am very smart" yes well done mate thanks for getting in touch
Read 4 tweets
18 Apr
One of our cats is missing and it's basically fucking awful
I have a plan
It's 4:30am, and it's totally calm out for the first time in a while. If I call to the cat, I can hear him yowling, one, maybe two gardens down. Fuck. Now I just need to wait for a sensible time to knock on doors, and find a socially distant way to do this.
Read 81 tweets
15 Feb
@heydonworks Did I ever tell you about the time someone called the police on me because they found my email in the source of their webmail client?
Read 9 tweets
3 Jan
All code using array.reduce should be rewritten without array.reduce so it's readable by humans *mutes thread*
Ok ok, fair enough, there are cases where array.reduce is the best thing to use.

Specifically, cases where you want to look really smart and don't care about readability.
I mean, wtf: Messy array.reduce code example from https://developers.google.com/web/fundamentals/primers/promises
Read 13 tweets
20 Nov 19
We had a lot of fun between the talks at #ChromeDevSummit. For example:

➡️ I get stuff wrong.
➡️ @DasSurma can't press buttons.
➡️ @aerotwist is a cheat.
➡️ Someone wrote a bot.
➡️ SURJIKO LIVES.

Let's dive in:
We started with the classic "we can't hearrrr you" intro. Yeah. I know. Buuuuut, check out the amazing jumpers @kosamari made.

Also, she teaches us about the "pacman circle".

We wanted to find out the audience's favourite web platform feature that launched in Chrome in the past 12 months using live-polling. But, to test things, we asked the audience the age old question: "tabs" vs "spaces". The result was incorrect.

Read 29 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!