magnASCII.dev Simone Magnaschi
Senior Full Stack Web Dev
Bookmarks tagged with #performance.
Show all

Prompt caching: 10x cheaper LLM tokens, but how? | ngrok blog

A far more detailed explanation of prompt caching than anyone asked for: how tokens, embeddings, and attention make cached LLM tokens 10x cheaper and faster.
Saved on: 2026-07-21

Why use static closures?

Why use static closures? (Published on March 3, 2026 - Version française)
Saved on: 2026-03-04

HTTP caching, a refresher · Dan Cătălin Burzo

Let’s relearn web caching together.
Saved on: 2025-12-24

Share Nothing — Do Everything

The title of this article was used as the subtitle for the pthreads extension.
Saved on: 2025-12-10

Progressive JSON

Why streaming isn't enough.
Saved on: 2025-06-02

React Scan

React Scan automatically detects and highlights components that cause performance issues in your React app. Drop it in anywhere – script tag, npm, you name it!
Saved on: 2025-02-18

Making AWS News stupid fast with smart caching

As I’m typing this, Re:Invent 2024 is only weeks away. In anticipation of AWS News’ busiest period of the year, I redesigned the API access patterns to support very efficient caching. This re…
Saved on: 2024-12-04

Fixing Layout Shifts Caused by Web Fonts | DebugBear

Identify and fix layout shifts caused by web fonts, improving your Core Web Vitals scores and user experience
Saved on: 2024-10-03

Must-Know Tips for Efficient Laravel Apps (Not just selecting only needed columns, eager loading ins

Forget the usual advice like selecting only needed columns, sub-queries, eager loading, caching queries, using queues, and indexes. This article dives deeper into actionable strategies that can truly…
Saved on: 2024-09-17

The 7 Levels of Laravel Optimization: From Rookie to Optimization Overlord

Buckle up! We’re diving headfirst into the wild world of Laravel optimizations, climbing the treacherous ladder from “just glad it works” to “your colleagues might call you a wizard” or curse you for…
Saved on: 2024-09-12

Optimizing PHP applications for performance — Mateus Guimarães

A quick guide on how to set up OPCache and fine-tune PHP-FPM.
Saved on: 2024-05-07

Caching secrets of the HTTP elders, part 1

ETags - an elegant weapon, for a more civilised age
Saved on: 2024-04-17

A deeper dive into optimal PHP-FPM settings

PHP-FPM config files usually aren't something that you give too much attention to until something goes wrong. Here's what you can do when that time comes.
Saved on: 2024-04-09

My talk on CSS runtime performance

A few months ago, I gave a talk on CSS performance at performance.now in Amsterdam. The recording is available online: (You can also read the slides.) This is one of my favorite talks I’ve ev…
Saved on: 2024-03-07

Fonts are still a Helvetica of a Problem

CVEs in three strange places and the unique problem of safely processing and handling fonts.
Saved on: 2024-03-06

Tips for optimizing integration tests

While unit tests are known for their speed compared to integration tests, the latter offer heightened confidence in the system’s functionality. Thus, avoiding integration tests is not advisable; instead, it’s crucial to strike a balance by writing tests at an appropriate level to ensure high confidence in the codebase. Achieving this equilibrium between time efficiency and confidence is paramount. Rapid feedback is essential for a smooth workflow, and today, I’ll share concise tips to enhance the efficiency of your integration tests. The effort invested is worthwhile, as swift feedback is indispensable for seamless operations, and each minute of improvement is magnified by the frequency of executions and the number of developers in the company.
Saved on: 2024-01-26

Correctly Configure (Pre) Connections – Harry Roberts – Web Performance Con

We’re probably familiar with preconnect, but are we getting it right?
Saved on: 2023-12-10

Graceful behavior at capacity

Suppose we’ve got a service. We’ll gloss over the details for now, but let’s stipulate that it accepts requests from the outside world, and takes some action in response. Maybe those requests are HTTP requests, or RPCs, or just incoming packets to be routed at the network layer. We can get more specific later. What can we say about its performance? All we know is that it receives requests, and that it acts on them.
Saved on: 2023-08-10

WPDS - Web Performance and SEO Best Practices and Guidelines | Resources

The Washington Post Design System (WPDS) is a growing library of design tokens and interactive components purpose-built for washingtonpost.com
Saved on: 2023-07-27

The modern way of serving images

Technical in-depth guide for the & srcset and sizes attributes to create responsive & performant images.
Saved on: 2023-06-15

300ms Faster: Reducing Wikipedia's Total Blocking Time

How two simple steps improved the responsiveness of Wikipedia's mobile site
Saved on: 2023-05-30

Rector diff speeding

After bringing a performance boost to PHPStan in Speedzember, I had a closer look at Rector.
Saved on: 2023-05-05

How to read MySQL EXPLAINs — PlanetScale

Learn how to read the output in MySQL EXPLAIN plans so you can utilize them to improve query performance.
Saved on: 2023-03-31

CPU usage

As one of the most widely used scripting languages for web development, PHP is known for its flexibility and ease of use. However, with complex
Saved on: 2023-03-17

What is a CDN & How do CDNs work ? | Level Up Coding

Content Delivery Networks are also known as CDNs. CDNs consists of a set of servers used to speed up the delivery of content to the users.
Saved on: 2023-02-08

Learn Images

An in-depth course on images for the web.
Saved on: 2023-02-02

Quick Wins and Marginal Gains in Laravel // slidr.io

Hassle free slidedeck hosting. Designed from the ground up for technical presentations and the need of our community!
Saved on: 2023-01-13

How to implement csv exports (millions of rows) in Laravel with a distributed approach using Queues and Jobs

I was working remotely yesterday and I was supposed to implement an export feature for a list of members on a system. The resulting file must be a CSV file.
Saved on: 2023-01-10

Docker on MacOS is slow and how to fix it

Note 05/01/2024: Hello there, you can find an update version of this article here, with the latest findings, improvements and new tools. Thanks to the DALL·E 2, we finally have a very nice graphic representation of the feelings of a Docker container inside a macOS environment, I will try with this article to make this poor container safe to the coast. TL;DR Link to heading At the time of writing, the only viable option to have a decent performance and a good DX are:
Saved on: 2022-12-23

Critical CSS? Not So Fast! – CSS Wizardry – Web Performance Optimisation

Critical CSS promises faster loading, but is it worth the complexity? Learn when Critical CSS actually boosts performance or when it might slow you down.
Saved on: 2022-09-07

SPAs: theory versus practice | Read the Tea Leaves

I’ve been thinking a lot recently about Single-Page Apps (SPAs) and Multi-Page Apps (MPAs). I’ve been thinking about how MPAs have improved over the years, and where SPAs still have an …
Saved on: 2022-06-28

Making the world’s fastest website, and other mistakes - DEV Community

Crazed developer attempts real ecommerce without front-end JavaScript to prove that y’all playin’
Saved on: 2022-06-09

Optimising Largest Contentful Paint – CSS Wizardry – Web Performance Optimi

Let’s look at some more technical and non-obvious aspects of optimising Largest Contentful Paint
Saved on: 2022-03-29

Learnings From a WebPageTest Session on CSS-Tricks | CSS-Tricks

I got together with Tim Kadlec from over at WebPageTest the other day to use do a bit of performance testing on CSS-Tricks. Essentially use the tool, poke
Saved on: 2021-07-29

Optimizing Vue for Speed, Performance, and Core Web Vitals | MattStauffer.c

Last week I gave a talk at AlpineDay entitled "From Vue to Alpine: How & Why". I put up my slides from my AlpineDay talk, "From Vue to Alpine: How & Why":https://t.co/xTzIl0FGunAnd also the files I used to test performance:https://t.co/tB5EThfEEJ pic.twitter.com/Jv8P7iDBcv— Matt Stauffer (@stauffermatt) June 10, 2021 In the talk I shared a few situations in which I've moved applications that were previously using Vue to use Alpine instead, for the sake of Google's Core Web Vitals. These sites were using Vue for light enhancements on top of a server-rendered app, and I found that Alpine is lighter to load and parse in these cases. I still stand by everything I said in the talk. However, a large swath of the Internet discovered my slides, hadn't heard the talk, and assumed I was badmouthing Vue. So, I wanted to write a post about how we can optimize our usage of Vue for this same scenario! How do we minimize Vue's impact on the Core Web Vitals? When Vue is too heavy In my talk, I described working on the Tighten website to improve its Core Web Vitals scores. For that particular site, we were using Vue for some very small components, and the combination of Vue's loading time and the components' initial processing time in the browser led to a significant delay for loading the page. I discovered I could solve our problem by replacing those components with Alpine components, and realized — and then gave a talk about this idea — that Alpine is an ideal fit, even for a Vue-loving agency like ours, for enhancements above vanilla JavaScript and below heavy dashboards and SPAs. Gimme my Vue! However, many of our sites — and likely yours, if you're reading this — are ideal for Vue, so we're not just going to drop it. Instead, let's look: can we optimize our page load speeds? There's a whole group of answers that have to do with code splitting and async loading, which you can find a link to down at the bottom of this post. But there are two strategies that are very similar to what I talked about in my talk, so they're the ones I'm going to cover in this talk. Making Vue load faster If you define your Vue components inline in your HTML (rather than in single-file components), it turns out this requires a heavier (larger file download) and slower (more processing power spent) version of Vue. This version has an in-browser compiler, which causes the impact to load size and processing time. I talked briefly with Evan You, the creator of Vue, who taught me that the "runtime-only" version (meaning, with no compiler) of Vue is 2/3rd the download size of the full Vue. He also gave me two ideas for how we can shrink Vue's load size and processing time. 1. Pre-compile your templates and use the "runtime" Vue build As I mentioned above, if Vue is going to have to compile Vue component definitions from your HTML, it has to include an in-browser compiler, which makes the script file larger and the proces
Saved on: 2021-06-24

Making Instagram.com faster: Part 1 | by Glenn Conner | Instagram Engineeri

In recent years, instagram.com has seen a lot of changes — we’ve launched stories, filters, creation tools, notifications, and direct messaging as well as myriad other features and enhancements…
Saved on: 2021-06-07

Core Web Vitals Tracking via GA4, BigQuery and Google Data Studio

Step by step instructions to start gathering your own detailed Core Web Vitals data and use it to generate advanced reports.
Saved on: 2021-06-01

Links on Performance | CSS-Tricks

Making GitHub’s new homepage fast and performant — Tobias Ahlin describes how the scrolling effects are done more performantly thanks to IntersectionObserver
Saved on: 2021-05-25

Find N 1 problems instantly by disabling lazy loading | Laravel News

Learn about the strict lazy loading setting that allows you to disable it entirely for non-production environments.
Saved on: 2021-05-22

Lightning-Fast Web Performance: an online lecture series from Scott Jehl

An online lecture course by Scott Jehl.
Saved on: 2021-05-20

Tuning Nginx and PHP-FPM… The Right Way - Nomad PHP

Presented by Evan Coury @EvanDotPro Presented on December 18, 2014 More and more large companies and websites are switching over to Nginx + PHP-FPM for increased performance and more efficient resource utilization. When properly tuned, this duo can be a perfect match for high traffic situations. However, it only takes one small oversight in the configuration to bring your site to a grinding halt under high load. Join Evan Coury, owner of Roave, as he shares all of his tips and tricks learned throughout years of high scalability consulting and running several extremely high traffic websites. We’ll cover how to optimally tune PHP-FPM worker pools, sysctl, and Nginx to get the most out of your servers. Additionally, we’ll cover adding additional capacity to handle traffic spikes, load balancing, and more. Meet Evan Coury Evan Coury is a core contributor and long-time user of Zend Framework who is perhaps most well known in the community for authoring the all-new ZF2 module system. He is currently a professional software architect, independent consultant, and owner of Roave, LLC, a full-service web development consulting firm specializing in PHP and Zend Framework. Evan is a strong proponent of free, open source software and also runs the successful SMSCloud.com international SMS gateway.
Saved on: 2021-05-06

The Humble Element And Core Web Vitals — Smashing Magazine

Images have also been a key part of the web. They communicate ideas instantly, but they are also a lot heavier than text to load. This means that it’s essential to get loading and displaying them right, if you want to give your users a fantastic first impression. An excerpt from Addy Osmani's new book (also, check a free PDF preview). We’re happy and honored to have teamed up with Addy to publish a dedicated book on image optimization, and the book is now finally here!
Saved on: 2021-04-30

The Almost-Complete Guide to Cumulative Layout Shift

This is Jess B Peck's personal website. SEO, Analytics, big data, small data, and the web.
Saved on: 2021-04-20

Debugging layout shifts

Learn how to identify and fix layout shifts.
Saved on: 2021-03-15

How CLS optimizations increased Yahoo! JAPAN News's page views per session

Using Search Console and Lighthouse to monitor Core Web Vitals, they discovered opportunities for optimizing CLS score by 0.2 which led to 15% increase in page views per session, 13% longer session duration, and 1.72 percentage point decrease in bounce rate.
Saved on: 2021-03-10

content-visibility: the new CSS property that boosts your rendering perform

The CSS content-visibility property enables web content rendering performance benefits by skipping rendering of off-screen content. This article shows you how to use this new CSS property for faster initial load times, using the auto keyword. You will also learn about the CSS Containment Spec and other values for content-visibility that give you more control over how your content renders in the browser.
Saved on: 2021-03-08

How We Improved SmashingMag Performance — Smashing Magazine

In this article, we’ll take a close look at some of the changes we made on this very site — running on JAMStack with React — to optimize the web performance and improve the Core Web Vitals metrics. With some of the mistakes we’ve made, and some of the unexpected changes that helped boost all the metrics across the board. Hopefully, this little case-study will be useful to you, and perhaps there are one or two techniques that you might be able to apply to your project right away. In the end, performance is all about a sum of all the fine little details, that, when added up, make or break your customer’s experience.
Saved on: 2021-01-22

Maximally optimizing image loading for the web in 2021

In this post I'll outline 8 image loading optimization techniques to minimize both the bandwidth used for loading images on the web and the...
Saved on: 2021-01-20

Tuning Your Apache Server | Linode

This guide provides you with information on tuning the performance and configuration of your Apache web server to optimize the load times of your website.
Saved on: 2020-09-29

Apache2 and php fpm performance optimization — Step-by-step guide | by Seba

I had to handle high traffic loads in my career and I fought with down-time, not used memory and a lot of trouble in my past. In this article I want to give a step-by-step guide to apache2…
Saved on: 2020-09-29

The Ultimate Guide to Web Performance 🚀

There's so many ways to speed up your site. Don't you wish every web performance tip was in one place...
Saved on: 2020-09-25

A high-performance blog template for 11ty

I'm excited to announce the beta-release of eleventy-high-performance-blog–a high-performance blog template for 11ty based on this very...
Saved on: 2020-09-07

A tale of webpage speed, or throwing away React

Back in 2011, I happened to get a job writing Backbone.js app. If you never did that, don’t. I was complaining about difficulties with composition left and right to [...]
Tags: #performance
Saved on: 2020-08-24

How We Achieve 90 Lighthouse Performance Score and Fully Offline Mode for

DANA Home Shopping is one of the key features that DANA provides to make us more convenience to buy stuff we want from our home without going anywhere. We can order via Whatsapp and pay it using QRIS…
Saved on: 2020-07-08

The Fastest Google Fonts – CSS Wizardry – Web Performance Optimisation

Google Fonts is fast. Now it’s faster. Much faster.
Saved on: 2020-05-20

Performant Front-end Architecture

Make your client-side apps load fast and provide a good user experience.
Saved on: 2020-02-10

JoliCode - Battle log: a deep dive in Symfony stack in search of optimizati

My team and I are working on a big project that is becoming bigger and bigger. Split in micro services, each end-user call generates an increasing number of HTTP API calls. Performance was becoming a problem and the Developer eXperience (DX) suffered as a result. Note that we already
Saved on: 2020-01-20

DarkGhostHunter/Preloader: Preloader helper to create a PHP-ready preload s

Preloader helper to create a PHP-ready preload script from Opcache. - DarkGhostHunter/Preloader
Saved on: 2020-01-15

From 15,000 database connections to under 100: DigitalOcean's tale of tech debt | DigitalOcean

Helping millions of developers easily build, test, manage, and scale applications of any size - faster than ever before.
Saved on: 2020-01-15

Front-End Performance Checklist 2020 [PDF, Apple Pages, MS Word] — Smashing

Let’s make 2021... fast! An annual front-end performance checklist, with everything you need to know to create fast experiences on the web today, from metrics to tooling and CSS/JavaScript techniques.
Saved on: 2020-01-07

Fast load times

Tags: #performance
Saved on: 2019-12-09

The Simplest Way to Load CSS Asynchronously | Filament Group, Inc.

Read this page on the Filament Group website
Saved on: 2019-07-24

The Three Types of Performance Testing – CSS Wizardry – CSS Architecture, W

How can we make it easier for businesses to understand when and what to measure?
Saved on: 2019-07-15

Preloading in PHP 7.4 - stitcher.io

Preloading allows for parsed PHP files to be available for all requests
Saved on: 2019-07-04

Extract critical CSS | web.dev

Learn how to improve render times with critical CSS technique and how to choose the best tool for your project.
Saved on: 2019-06-05

How we built the fastest conference website in the world

This is a post by JSConf EU Organiser Malte Ubl. The clickbait headline got you here, so let’s make this worth your while! I have no idea whether this is the fastest conference website in the world but I also don’t know that it isn’t; and I’ve spent a...
Saved on: 2019-03-20

AddyOsmani.com - JavaScript Loading Priorities in Chrome

How browsers schedule and execute scripts can impact the performance of web pages. While techniques like
Saved on: 2019-02-21

Front-End Performance Checklist 2019 [PDF, Apple Pages, MS Word] — Smashing

Let’s make 2021... fast! An annual front-end performance checklist, with everything you need to know to create fast experiences on the web today, from metrics to tooling and CSS/JavaScript techniques.
Saved on: 2019-01-10

A Beginner's Guide to Scaling to 11 Million+ Users on Amazon's AWS - High Scalability -

How do you scale a system from one user to more than 11 million users? Joel Williams, Amazon Web Services Solutions Architect, gives an excellent talk on just that subject: AWS re:Invent 2015 Scaling Up to Your First 10 Million Users. If you are an advanced AWS user this talk is not for you, but it’s a great way to get started if you are new to AWS, new to the cloud, or if you haven’t kept up with with constant stream of new features Amazon keeps pumping out. As you might expect since this is
Saved on: 2018-12-26

How to Install and Configure OPcache With Your PHP App

Learn how to improve your PHP app's performance with this guide to installing and configuring OPcache, made easy with Cloudways' simplified integration process.
Saved on: 2018-11-30

Up to speed with web performance

A write-up of performance.now() conference in Amsterdam.
Tags: #performance
Saved on: 2018-11-22

web.dev

Guidance to build modern web experiences that work in every browser.
Saved on: 2018-11-13

Web Performance 101: JS, CSS, HTTP, images & fonts

Learn how (and why) to make your app faster by optimizing JS, CSS, images/fonts and other things
Saved on: 2018-10-30

Perceived Performance: The Only Kind That Really Matters

A talk on perceived performance, delivered at Fluent Conf 2017
Saved on: 2018-10-03

Front-End-Performance-Checklist/README.md at main · thedaviddias/Front-End-Performance-Checklist

🎮 The only Front-End Performance Checklist that runs faster than the others - thedaviddias/Front-End-Performance-Checklist
Saved on: 2018-08-30

Web Performance Made Easy - Google I/O 2018 edition | Articles | web.dev

At Google IO 2018, we presented a roundup of tools, libraries and optimization techniques that make improving web performance easier. Here we explain them using The Oodles Theater app. We also talk about our experiments with predictive loading and the new Guess.js initiative.
Saved on: 2018-08-22

The Cost Of JavaScript In 2018 – Addy Osmani – Medium

Building interactive sites can involve sending JavaScript to your users. Often, too much of it. Have you been on a mobile page that looked like it had loaded only to tap on a link or tried to scroll…
Saved on: 2018-08-03

Delivering WordPress in 7KB | CSS-Tricks

Over the past six months, I've become increasingly interested in the topic of web sustainability. The carbon footprint of the Internet was not something I
Saved on: 2018-07-12

15 Experts Share Their Web Performance Advice for 2018

25+ experts share their advice and mistakes they see when it comes to web performance and which optimizations you should spend time prioritizing.
Saved on: 2018-06-08

PHP-FPM: Process Management | Servers for Hackers

Learn how to manage how PHP-FPM creates and uses PHP processes to get the most out of your server.
Saved on: 2018-06-01

(8) Improving page performance with Chrome DevTools - YouTube

Modern DevTools Lesson 13 https://moderndevtools.com/lessons/13
Saved on: 2018-03-22

Make your Laravel App Fly with PHP OPcache – Appstract – Medium

Every time you execute a PHP script, the script needs to be compiled to byte code. OPcache leverages a cache for this bytecode, so the next time the same script is requested, it doesn’t have to…
Saved on: 2018-03-10

The Cost Of JavaScript – Dev Channel – Medium

As we build sites more heavily reliant on JavaScript, we sometimes pay for what we send down in ways that we can’t always easily see. In this post, I’ll cover why a little discipline can help if…
Saved on: 2017-11-17

JavaScript Start-up Performance – reloading – Medium

As web developers, we know how easy it is to end up with web page bloat. But loading a webpage is much more than shipping bytes down the wire. Once the browser has downloaded our page’s scripts it…
Saved on: 2017-10-30

Infrequently Noted

Performance budgets are an essential but under-appreciated part of product success and team health. Most partners we work with are not aware of the real-world operating environment and make inappropriate technology choices as a result. We set a time budget of less than 5 seconds first-load Time-to-Interactive and less than two seconds for subsequent loads. We further constrain ourselves to a baseline device and network configuration to measure progress. 2017's global baseline is a ~$200 Android device on a 400Kbps link with a 400ms round-trip-time ('RTT'). This translates to ~130-170KB of critical-path resources, depending on composition; the more JS you include, the smaller the bundle must be.
Tags: #performance
Saved on: 2017-10-28

Stitcher 1.0

Significantly improve PHPStorm's performance.
Tags: #performance
Saved on: 2017-10-23

100/100 su Pagespeed Insights con il tuo sito Wordpress

L'unica guida che ti fa ottenere veramente il 100/100 su tutte le tab di Pagespeed Insights. Metti il turbo al tuo sito Wordpress diminuisci il bounce rate
Tags: #performance
Saved on: 2017-10-17

Rearchitecting Airbnb’s Frontend – Airbnb Engineering & Data Science – Medi

Overview: We recently rethought the architecture for the JavaScript side of our codebase at Airbnb. This post will look at (1) the product drivers that precipitated the changes, (2) the steps we took…
Saved on: 2017-05-16
❤️
</>
2026