]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add hint to reduce screen flickering (#38426)
authorMark Dumay <61946753+markdumay@users.noreply.github.com>
Mon, 10 Apr 2023 16:58:48 +0000 (18:58 +0200)
committerGitHub <noreply@github.com>
Mon, 10 Apr 2023 16:58:48 +0000 (09:58 -0700)
site/content/docs/5.3/customize/color-modes.md

index a9970767da8e289c3e294185183b90a505b6c096..5c7ccf8624478e226d4d78ad1ec882a58adf14ff 100644 (file)
@@ -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 >}}