Remove Availability Remove Cache Remove Magazine Remove Processing
article thumbnail

Understanding Weak Reference In JavaScript

Smashing Magazine

When the JavaScript engine runs a garbage-collection process, the man object will be removed from memory and from the WeakMap that we assigned it to. The process of clearing memory when objects are no longer being used is referred to as garbage collection. smashing = null; console.log(array[0]) // {name: 'magazine'}.

Cache 116
article thumbnail

How To Optimize Progressive Web Apps: Going Beyond The Basics

Smashing Magazine

You can find a comprehensive Beginner’s Guide To Progressive Web Apps on Smashing Magazine that focuses on building the core of PWAs. The service workers enable the offline usage of the PWA by fetching cached data or informing the user about the absence of an Internet connection. Cached content with IndexedDB. Service Workers.

Cache 123
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

Reporting Core Web Vitals With The Performance API

Smashing Magazine

If you haven’t heard, INP is replacing the First Input Delay (FID) metric, something you can read all about here on Smashing Magazine as a guide to prepare for the change. const duration = entry.duration; // Calculate the time before processing starts. const duration = entry.duration; // Calculate the time before processing starts.

article thumbnail

Signals For Customizing Website User Experience

Smashing Magazine

That user preference is available in two (hopefully soon to be three!) This is available behind a flag in Chrome, but not yet on by default while it finishes standardization. Approximately two-thirds of Indian mobile Chrome users of Smashing Magazine have this setting turned on, for example. Save Data API. And Is It Used?

Website 103
article thumbnail

How We Improved SmashingMag Performance

Smashing Magazine

The build process on its own has become quite a beast over time as well, with critical CSS injects, Webpack’s code splitting, dynamic inserts of advertising and feature panels, RSS (re)generation, and eventual A/B testing on the edge. So we looked into options on automating this process as a part of the build routine.

article thumbnail

How We Optimized Performance To Serve A Global Audience

Smashing Magazine

However, achieving a good LCP score is often a multi-faceted process that involves optimizing several stages of loading and rendering. HTML Processing Once a web page’s HTML file has been downloaded, the browser begins to process the contents line by line, translating code into the visual website that users interact with.

article thumbnail

Rethinking Server-Timing As A Critical Monitoring Tool

Smashing Magazine

By stepping back and realizing that the fields available have no special bindings to particular types of data, we can see that this technique is also an effective delivery mechanism for any arbitrary data allowing lots of interesting possibilities. In this case, we can’t expect each layer could/should process and inject HTML content.

Servers 92