About:
Matteo Mazzarolo is a software engineer and web architect with a passion for JavaScript and open-source projects.
Website:
Specializations:
Interests:
Outgoing Links:
Subscribe to RSS:
The text discusses the concept of barrel files in JavaScript, their convenience, and the negative impacts they can have on build performance and developer tooling. The author shares their experience of refactoring barrel files in ...
The text discusses the handling of CORS and opaque responses in Service Workers. It explains how Service Workers intercept non-CORS responses and cache them as opaque using the Cache API, and how opaque responses can be used as re...
The post explains how to optimize the performance of client-side rendered apps by preloading async chunks for the current route, avoiding the waterfall effect caused by route-based lazy-loading. It discusses the drawbacks of lazy ...
The post discusses a pattern of conditional logging using query parameters to enable and disable the logging level of an app, especially useful for debugging in a live environment. It provides a simple example and code to convey t...
The post focuses on custom solutions to improve the performance of client-side rendered SPAs. It discusses the importance of preloading network data on page load and provides examples of how to implement this optimization. The aut...
The text provides a guide on setting up the fish shell from scratch on macOS. It includes instructions on installing fish, setting it as the default shell, adding Homebrew's binaries, creating completion files, installing fisher a...
The post discusses the issue of transitioning from the Gatsby image component to the Next.js image component, and how Next.js requires static assets to be placed in the public directory. The author explores different solutions to ...
The author explains how they solved the issue of having Next.js automatically determine the width and height of images in a MDX file to prevent Cumulative Layout Shift. They discuss two main ways to load images from files in Next....
The article discusses how DOM elements with IDs can be accessed in JavaScript as global variables. It explains the history of this feature, its implementation in different browsers, and the potential issues and considerations when...
The post discusses automating visual regression tests of a web application using Playwright and GitHub actions. It explains how to set up Playwright, generate initial snapshots, run tests in CI using GitHub Actions, and run tests ...