From 7abd9095f0cf677fbea1dfed51bdfb6ccc1afc34 Mon Sep 17 00:00:00 2001 From: patak Date: Thu, 11 Jan 2024 15:10:22 +0100 Subject: [PATCH 1/3] docs: add tip on browser extensions to perf guide --- docs/guide/performance.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/guide/performance.md b/docs/guide/performance.md index 5096d276381031..da394af612d7f9 100644 --- a/docs/guide/performance.md +++ b/docs/guide/performance.md @@ -6,6 +6,10 @@ While Vite is fast by default, performance issues can creep in as the project's - Slow page loads - Slow builds +## Avoid Browser Extensions + +Some browser extensions may interfere with requests and slow down startup and reload times for large apps, especially when using browser dev tools. We recommend creating a dev-only profile without extensions while using Vite's dev server in these cases. Another option is using Incognito mode, that should also provide an extra speed up when loading your app. + ## Audit Configured Vite Plugins Vite's internal and official plugins are optimized to do the least amount of work possible while providing compatibility with the broader ecosystem. For example, code transformations use regex in dev, but do a complete parse in build to ensure correctness. From 46dae4540a44c6d39522b9e976ec182719d75d2b Mon Sep 17 00:00:00 2001 From: patak Date: Thu, 11 Jan 2024 16:47:07 +0100 Subject: [PATCH 2/3] chore: update Co-authored-by: Bjorn Lu --- docs/guide/performance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/performance.md b/docs/guide/performance.md index da394af612d7f9..8a31c64b0ccd8a 100644 --- a/docs/guide/performance.md +++ b/docs/guide/performance.md @@ -8,7 +8,7 @@ While Vite is fast by default, performance issues can creep in as the project's ## Avoid Browser Extensions -Some browser extensions may interfere with requests and slow down startup and reload times for large apps, especially when using browser dev tools. We recommend creating a dev-only profile without extensions while using Vite's dev server in these cases. Another option is using Incognito mode, that should also provide an extra speed up when loading your app. +Some browser extensions may interfere with requests and slow down startup and reload times for large apps, especially when using browser dev tools. We recommend creating a dev-only profile without extensions, or switch to incognito mode, while using Vite's dev server in these cases. ## Audit Configured Vite Plugins From 281563bd6900a980c713f37214499151e5d94dff Mon Sep 17 00:00:00 2001 From: patak Date: Thu, 11 Jan 2024 16:47:32 +0100 Subject: [PATCH 3/3] chore: update --- docs/guide/performance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/performance.md b/docs/guide/performance.md index 8a31c64b0ccd8a..0a941ddc45aeef 100644 --- a/docs/guide/performance.md +++ b/docs/guide/performance.md @@ -8,7 +8,7 @@ While Vite is fast by default, performance issues can creep in as the project's ## Avoid Browser Extensions -Some browser extensions may interfere with requests and slow down startup and reload times for large apps, especially when using browser dev tools. We recommend creating a dev-only profile without extensions, or switch to incognito mode, while using Vite's dev server in these cases. +Some browser extensions may interfere with requests and slow down startup and reload times for large apps, especially when using browser dev tools. We recommend creating a dev-only profile without extensions, or switch to incognito mode, while using Vite's dev server in these cases. Incognito mode should also be faster than a regular profile without extensions. ## Audit Configured Vite Plugins