March 1, 2021, 5:54 a.m.

Web in February - The Newsletter by Agney

Mindless

The shortest month of the year, done and dusted. By popular opinion, it’s like this month did not exist. But we have news, because the Web never stops ⚡️.

Some updates on our favourite remote work environments.

  • Salesforce provides permanent remote work option
  • Spotify says it’s letting employees work from anywhere, while still paying San Francisco and New York salaries
Chris Herd
@chris_herd

I’ve spoken to 2,000+ companies over the last 12 months about their plans for remote work going forward Here are a few things I’ve learned [ a thread ] 💻🏠🌍


Feb. 9, 2021, 1:40 p.m.

Time for new age codecs

AVIF and JPEG XL are making a splash in browser space this year and they offer much much lesser image sizes than JPEG or PNG. According to HTTP Archive, images make up more than 20% of web traffic. So optimising is usually the very first step to optimising your webpage.

  • Time for Next-Gen Codecs to Dethrone JPEG - Cloudinary - Comparison chart for different codecs, compression, advantages and disadvantages.
  • AVIF Format is unreal - Hasty Treat Podcast - Wes Bos and Scott Tolinski present AVIF and talk about what it offers to the web ecosystem.
  • AVIF has Landed - Jake Archibald’s blog presents sample images in different modern formats for you to visually compare images and final sizes.

While we are all for smaller images, how do we achieve them?

  • Squoosh.app - Google’s app provides Web UI for compressing images into all modern formats including AVIF and JPEG XL. With the newly launched CLI, this is a treat to use.
  • Gatsby Image - Gatsby’s image plugin provides loading images in different sizes and auto generates them on the client. But because this includes different codes and some C++ it is sometimes a pain to install and maintain.
  • Next Images - You can enable automatic format management and sizes on the server side with NextJS API for image management. It currently works with providers like Vercel, Cloudinary, Akamai and Imgix.

Releases

  • Firefox 86 - Firefox 86 comes with Total Cookie Protection that confines a cookie created to it’s origin. No more cross origin tracking (in strict mode)
  • NPM 7 - NPM now installs peer dependencies by default.
  • Vite 2.0 - The coming of age for one of the fastest build tools for frontend development from Vue’s creator Evan You. Vite is now framework agnostic and work’s with different tools like React, Preact, Lit Element and server side rendering support.

Tutorials

  • Debugging Service Workers - Service Workers are very hard to debug (and update of course!) The latest MS Edge makes it a bit easier.
  • Tackling TypeScript - Axel Rauschmayer who is one of the pioneers and leaders of JavaScript related content now has a book on TypeScript and it’s great.
  • JavaScript counters the hard way - HTTP 203 - Jake and Surma complicate things on this show HTTP 203. In this episode, they take counters and discuss how we can make accurate JavaScript counters.
  • CSS Transitions - CSS transitions are simple to perform and difficult to reason. Josh makes the MDX a tool worth having on your blog.
  • What the heck is z-index - Did I tell you how much I love Josh’s blogs! If you think you know z-index, think again.
  • Before you memo - Dan Abramov lists tips to try before you use memo and unlike very unlike Dan it’s very short (not that I’m complaining for his detailed case studies)

In the Spotlight 🔦

☄︎
@0xca0a

react just broke through 10 million npm installs per week. TEN MILLION! 🤪 in a dev audit npm had 2 years ago they claimed 60% of all web devs are also react devs, wonder how that looks today. crazy how all it took was a really good idea to unite the dev world.


Feb. 10, 2021, 2:19 p.m.

Chris Coyier (CSS Tricks, Codepen and more) did a thread on what’s happening in JavaScript in 2021 and some predictions to go with it.

Chris Coyier
@chriscoyier

JavaScript in 2021? What’s going on? Let’s brainstorm!


Feb. 18, 2021, 11:19 p.m.

In Other News

  • Excel is now a programming language - The best software in the world is now also a programming language by introducing Lambda functions. Also, turing complete.
  • UI and UX micro tips - UI and UX can be confusing, this article provides some easy microtips with clear examples of the right and wrong usage.
  • Github 1s - Append 1s being github in the URL for a repository and open it up in a complete VS Code development environment. Perfect in case you are still waiting for codespaces.
  • WebRTC becomes a W3C standard - WebRTC is now supported in all major browsers and officially a web standard.

Looking Forward

  • Gatsby Conf - March 2,3
  • React Day - March 19, 20
  • Free Vue 3 TypeScript Course - Vue Mastery - March 2-9

You just read issue #14 of Mindless. You can also browse the full archives of this newsletter.

Share on Twitter Share on LinkedIn
Find Mindless elsewhere: GitHub Twitter
Brought to you by Buttondown, the easiest way to start and grow your newsletter.