Skip to content

Commit

Permalink
docs: add note about dev-server startup and styles
Browse files Browse the repository at this point in the history
A note has been added to the application builder documentation regarding
the Vite-based development server and style processing that could
potentially result in initial FOUC due to server processing overhead on startup.
  • Loading branch information
clydin committed Nov 19, 2024
1 parent cdaa909 commit 9fab520
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions adev/src/content/tools/cli/build-system-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ ng serve

You can continue to use the [command line options](/cli/serve) you have used in the past with the development server.

HELPFUL: With the development server, you may see a small Flash of Unstyled Content (FOUC) on startup as the server initializes.
The development server attempts to defer processing of stylesheets until first use to improve rebuild times.
This will not occur in builds outside the development server.

### Hot module replacement

Hot Module Replacement (HMR) is a technique used by development servers to avoid reloading the entire page when only part of an application is changed.
Expand Down

0 comments on commit 9fab520

Please sign in to comment.