Zum Hauptinhalt springen Seitenleiste
Auf dieser Seite
Zum Inhaltsverzeichnis springen

Reduce FOUCE

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

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");

Wir würden uns freuen, von dir zu hören. Kontaktiere uns bitte bei Fragen oder Anliegen, die du hast.

Du kannst uns per E‐Mail unter placer.coc.reports+contact@gmail.com erreichen.

Wir freuen uns darauf, von dir zu hören!

Alles klar!
Gefährliche Lande

Ui! Du bist in die gefährlichen Lande von Placer Toolkit geraten. Version 0 ist veraltet und entspricht nicht den EU‐Datenschutzstandards, einschließlich DSGVO.

Willst du die neuesten Kräfte, Sicherheit und Compliance? Bleib bei der aktuellen Version von Placer Toolkit!

Ups! Aufladen!

Unsere Website ist zu 100 % frei von Cookies! Wir legen großen Wert auf deine Privatsphäre und speichern daher keinerlei Cookies oder persönliche Informationen über dich.

Dein Browserverlauf bleibt sauber und deine Daten sind geschützt, ganz im Einklang mit modernen Datenschutzstandards wie der DSGVO. Genieße deinen Besuch ganz ohne digitale Cookies! 🍪🚫

Weitere Informationen findest du in unserer Datenschutzerklärung.

Alles klar!