Solice UI
Back to the curriculum

Chapter 6 · Performance & Tooling

Images and assets

Images, fonts, and scripts often make up most of a page's transferred bytes. Good asset choices begin with the content's purpose, required quality, and visible size.

Beginner · Lesson 2 of 6 in this chapter

Send the right file for the job

Photographs, illustrations, icons, and animation have different format needs. Resize raster images near their display size and avoid sending a huge source file that CSS merely shrinks on screen.

Load important assets at the right time

The main visible image may deserve early loading, while images far below the fold can load lazily. Limit font variants and make sure text remains usable while custom fonts are unavailable.

Preparing a course illustration

  1. Export the illustration with the transparency and dimensions its slot needs.
  2. Keep meaningful labels readable at the displayed size.
  3. Load it normally near the top instead of marking every image on the site as high priority.
  • Match format and dimensions to the actual content.
  • Prioritize visible assets; defer off-screen assets.
  • Avoid making readable text depend on a delayed font or image.