article thumbnail

Understanding Weak Reference In JavaScript

Smashing Magazine

Let’s illustrate this with some snippets: let smashing = {name: "magazine"}; // The object can be accessed from the reference. // Overwrite the reference smashing. let smashing = {name: "magazine"}; let arr = [smashing]; // Overwrite the reference. smashing = null; console.log(array[0]) // {name: 'magazine'}. Additional Data.

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. Here’s an example from Google developers of opening a database, adding an object store, and adding an item to this store. Optimizing Based On Network Usage. Cache first, then network.

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

Five Data-Loading Patterns To Improve Frontend Performance

Smashing Magazine

The resource loading waterfall is a cascade of files downloaded from the network server to the client to load your website from start to finish. It essentially describes the lifetime of each file you download to load your page from the network. You can see this by opening your browser and looking in the Networking tab.

Cache 125
article thumbnail

USENIX LISA 2018: CFP Now Open

Brendan Gregg

Apart from networking, attending conferences like LISA in person is an effective way to upgrade your skills: you can block out work interruptions and absorb new knowledge that's been neatly summarized into sessions. We first met each other at LISA, in addition to making many other important industry connections over the years.

DevOps 43
article thumbnail

USENIX LISA 2018: CFP Now Open

Brendan Gregg

Apart from networking, attending conferences like LISA in person is an effective way to upgrade your skills: you can block out work interruptions and absorb new knowledge that's been neatly summarized into sessions. We first met each other at LISA, in addition to making many other important industry connections over the years.

DevOps 40
article thumbnail

Reducing HTML Payload With Next.js (Case Study)

Smashing Magazine

However, in our pages, the case was different as our database stores lots of data, and we need to serve thousands of landing pages at scale. Since our database contains a large amount of data for every page, we need to aggregate it efficiently and send something small and thin to the clients. server only; Graphql Server layer added.

Google 110
article thumbnail

How Improving Website Performance Can Help Save The Planet

Smashing Magazine

The Green Web Foundation maintains an ever-growing database of web hosts who are either wholly powered by renewable energy or are at least committed to being carbon neutral. This includes the work done by the server, the client and the intermediary communications networks that transmit data between the two. Reduce Network Requests.