aboutsummaryrefslogtreecommitdiff
path: root/site/content
diff options
context:
space:
mode:
authorMark Dumay <[email protected]>2023-04-10 18:58:48 +0200
committerGitHub <[email protected]>2023-04-10 09:58:48 -0700
commitb000f2ace1cd70a141ff0a90f2d18a57d4ecfae4 (patch)
treec2a197833aab25d3f3792dda1214f633b37843fe /site/content
parente8311211f3e9b52eac301ef8a5764a8ea1118d31 (diff)
downloadbootstrap-b000f2ace1cd70a141ff0a90f2d18a57d4ecfae4.tar.xz
bootstrap-b000f2ace1cd70a141ff0a90f2d18a57d4ecfae4.zip
Add hint to reduce screen flickering (#38426)
Diffstat (limited to 'site/content')
-rw-r--r--site/content/docs/5.3/customize/color-modes.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/content/docs/5.3/customize/color-modes.md b/site/content/docs/5.3/customize/color-modes.md
index a9970767d..5c7ccf862 100644
--- a/site/content/docs/5.3/customize/color-modes.md
+++ b/site/content/docs/5.3/customize/color-modes.md
@@ -181,7 +181,7 @@ For example, you can create a "blue theme" with the selector `data-bs-theme="blu
To allow visitors or users to toggle color modes, you'll need to create a toggle element to control the `data-bs-theme` attribute on the root element, `<html>`. We've built a toggler in our documentation that initially defers to a user's current system color mode, but provides an option to override that and pick a specific color mode.
-Here's a look at the JavaScript that powers it. Feel free to inspect our own documentation navbar to see how it's implemented using HTML and CSS from our own components. Note that if you decide to use media queries for your color modes, your JavaScript may need to be modified or removed if you prefer an implicit control.
+Here's a look at the JavaScript that powers it. Feel free to inspect our own documentation navbar to see how it's implemented using HTML and CSS from our own components. It is suggested to include the JavaScript at the top of your page to reduce potential screen flickering during reloading of your site. Note that if you decide to use media queries for your color modes, your JavaScript may need to be modified or removed if you prefer an implicit control.
{{< example lang="js" show_preview="false" >}}
{{< js.inline >}}