Skip to main content Sidebar
On this page
Skip to table of contents

Reduce FOUCE

This utility hides undefined custom elements until they are registered.

Often, components are shown before their logic and styles have had a chance to load, also known as a Flash of Undefined Custom Elements (FOUCE).

The Reduce FOUCE style utility (which is automatically applied if you import placer.css) automatically takes care of hiding custom elements until both they and their contents have been registered, up to a maximum of two seconds.

In many cases, this is not enough, and you may wish to hide a broader wrapper element or even the entire page until all Placer Toolkit elements within it have loaded. To do that, you can add the pc-cloak class to any element on the page or even apply it to the whole page by placing the class on the HTML element.

<!DOCTYPE html>
<html class="pc-cloak">
    <head>
        <!-- … -->
    </head>
    <body>
        <!-- … -->
    </body>
</html>

Importing

If you imported placer.css, you can skip this section. But if you cherry picked from all the CSS files, you can use these snippets to import this utility.

In HTMLIn CSS

To import this utility from the CDN with a link tag, copy this snippet and paste it in your HTML:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/placer-toolkit@1.0.0-alpha.3/cdn/styles/utilities/fouce.css" />

To import this utility with an @import at‐rule, copy this snippet and paste it in your global CSS file:

@import url("https://cdn.jsdelivr.net/npm/placer-toolkit@1.0.0-alpha.3/cdn/styles/utilities/fouce.css");

We’d love to hear from you. Please reach out to us with any questions or enquiries you may have.

You can contact us via e‐mail at placer.coc.reports+contact@gmail.com.

We look forward to hearing from you!

Got it!
Dangerous lands

Whoa! You’ve wandered into the dangerous lands of Placer Toolkit. Version 0 is out of date and doesn’t meet EU privacy standards, including GDPR.

Want the latest powers, security and compliance? Stick with the current version of Placer Toolkit!

Yikes! Power up!

Our site is 100 % cookie‐free! We value your privacy, which is why we don’t store any cookies or personal information related to you.

Your browser history is safe from crumbs, and your data is protected, aligning with modern privacy standards like the GDPR. Enjoy your visit without a single digital cookie in sight! 🍪🚫

View our Privacy Policy for more information.

Got it!