Reader small image

You're reading from  Full Stack Web Development with Remix

Product typeBook
Published inNov 2023
Reading LevelIntermediate
PublisherPackt
ISBN-139781801075299
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Andre Landgraf
Andre Landgraf
author image
Andre Landgraf

Andre is a full stack developer from Germany. He graduated with an MS in Information Systems from the Technical University of Munich and was also awarded an MS in Computer Science from Sofia University in Palo Alto. Andre currently lives in Cupertino, California, and he works as a Software Engineer at LinkedIn. Andre loves learning, writing, and speaking about all things web. In his free time, he tutors aspiring developers and builds for the web.
Read more about Andre Landgraf

Right arrow

Handling fonts, images, stylesheets, and other assets

Fonts, images, and stylesheets are examples of static assets that need to be efficiently managed when building for the web. To ensure a fast user experience, it is necessary to optimize, minimize, and cache these assets. Proper management of static assets can significantly improve page load times and enhance the overall user experience. In this section, you will learn how to access and manage static assets in Remix. Let’s start by reviewing how to access a simple static file in Remix.

Working with static assets

We can host static assets on our web server so that our client application can access them. As we learned previously, Remix is not a web server but an HTTP request handler. As such, Remix does not offer a built-in way to serve static assets. It’s the underlying web server’s responsibility to set up access for public assets.

Luckily, Remix’s starter templates follow the common pattern of...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Full Stack Web Development with Remix
Published in: Nov 2023Publisher: PacktISBN-13: 9781801075299

Author (1)

author image
Andre Landgraf

Andre is a full stack developer from Germany. He graduated with an MS in Information Systems from the Technical University of Munich and was also awarded an MS in Computer Science from Sofia University in Palo Alto. Andre currently lives in Cupertino, California, and he works as a Software Engineer at LinkedIn. Andre loves learning, writing, and speaking about all things web. In his free time, he tutors aspiring developers and builds for the web.
Read more about Andre Landgraf