Remove articles what-is-code-refactoring-and-why-should-you-do-it-1
article thumbnail

Measure What You Impact, Not What You Influence

CSS Wizardry

A thing I see developers do time and time again is make performance-facing changes to their sites and apps, but mistakes in how they measure them often lead to incorrect conclusions about the effectiveness of that work. However, in a sentence: Measure what you impact, not what you influence. Indirect Optimisation.

article thumbnail

Optimising Largest Contentful Paint

CSS Wizardry

So, in this post, I want to go deep and show you some interesting tricks and optimisations, as well as some pitfalls and bugs, starting with some very simple tips. The important thing to note here is that Google doesn’t care how you get to LCP, as long as you get there fast. of origins had good LCP 94.9% First Paint.

Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

It’s A (Front-End Testing) Trap! Six Common Testing Pitfalls And How To Solve Them

Smashing Magazine

All right, but what does this have to do with testing? All right, but what does this have to do with testing? Well, it’s simply an apt allegory when it comes to dealing with tests in a code base. In this article, I’ll tell you the pitfalls I’ve run into in my career — some of which were my fault.

Testing 120
article thumbnail

Gone Floating Labels And Green Lighthouse Scores

Smashing Magazine

After we’ve published Adam Silver’s piece on why floating labels are a bad idea , we’ve seen a huge discussion on Twitter and in the comments about them. After we’ve published Adam Silver’s piece on why floating labels are a bad idea , we’ve seen a huge discussion on Twitter and in the comments about them. Vitaly Friedman.

Mobile 140
article thumbnail

Monetize Open-Source Software With Gatsby Functions And Stripe

Smashing Magazine

In this article, I’ll be explaining how I’ve used Gatsby Functions and the Stripe API to enable secure “Pay what you want” contributions that help fund my open-source project MDX Embed. Gatsby provides the same logical approach to Serverless Functions as they do with pages. Paul Scanlon. 2021-09-17T09:00:00+00:00.

article thumbnail

The State Of Web Workers In 2021

Smashing Magazine

The web is streaming, meaning it has none of the resources locally available when you open an app for the first time. But regardless of where you look, multithreading is used everywhere. But regardless of where you look, multithreading is used everywhere. The Problem Of Unpredictable Performance. Quite a lot of work.

Games 145
article thumbnail

How We Improved SmashingMag Performance

Smashing Magazine

And suddenly, before you know it, the code base gets a little bit overweight and fragmented , third-party scripts have to load just a little bit earlier, and shiny new dynamic content finds its way into the DOM through the backdoors of fourth-party scripts and their uninvited guests. Vitaly Friedman. 2021-01-21T14:00:00+00:00.