<!-- https://zerolog.ch/news/design-preview-linked-files-2026-11-15 -->
# HTML previews load their own stylesheets and scripts

2026-11-15 · Product

> When the AI writes a page as index.html with separate CSS and JavaScript files, the Design column now shows it styled and working. On narrower screens the chat list makes room for the preview.

A page the AI writes in your workspace often comes as three files: `index.html`, a stylesheet and a script. The Design column used to draw only the HTML file. Its preview has no network access, so the linked files never loaded, and the page appeared unstyled and without its logic.

*Linked stylesheets and scripts from the workspace go into the preview; the chat list makes room.*

Text version

The workspace holds index.html, app.css and app.js. The preview reads all three and shows the page styled and working. Beside it, the chat list is collapsed to its icon rail.

The preview now reads stylesheets and scripts that the page links with a relative path and places them into the page it shows. It reads what is in the workspace at that moment, so a stylesheet the AI writes after the HTML file appears the next time the preview loads. Links to other sites and paths that start with a slash stay as they are. Up to 12 linked files and 768 KB per page are included.

On screens narrower than about 1,500 pixels, opening a preview, a file or a report next to the chat now collapses the chat list to its icon rail, and closing the panel expands it again. Before, the open list covered most of the preview, and the uncovered half of a page looked blank. On phones the list closes. You can still open it by hand while a preview is open.

No action is needed.
