# Flash when displaying cards with CSS imported

**URL:** <https://forums.ankiweb.net/t/flash-when-displaying-cards-with-css-imported/15121>\
**Category:** Help\
**Created:** [November 20, 2021, 1:35pm UTC](https://forums.ankiweb.net/t/flash-when-displaying-cards-with-css-imported/15121 "2021-11-20T13:35:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Escape0707](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/escape0707/32/3278_2.png) [@Escape0707](https://forums.ankiweb.net/u/Escape0707)\
**Post date:** [November 20, 2021, 1:35pm UTC](https://forums.ankiweb.net/t/flash-when-displaying-cards-with-css-imported/15121/1 "2021-11-20T13:35:23Z")

</div>

I’m importing my customized CSS file across my decks to ease the copy-pasta and sync of style rule. But I noticed that on Desktop version, the card is often displayed correctly only after a flash.

I think Anki display the card before it loads the CSS file and only when the external CSS file got imported does it re-render the card with my rules.

On AnkiMobile there isn’t any problem.

Is there any better way to get rid of this “flash”?

---

<div class="post-metadata">

**Author:** ![Escape0707](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/escape0707/32/3278_2.png) [@Escape0707](https://forums.ankiweb.net/u/Escape0707)\
**Post date:** [November 20, 2021, 1:38pm UTC](https://forums.ankiweb.net/t/flash-when-displaying-cards-with-css-imported/15121/2 "2021-11-20T13:38:41Z")

</div>

Is this the same thing as [flickering when external css reference used · Issue #1455 · ankitects/anki · GitHub](https://github.com/ankitects/anki/issues/1455)

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [November 21, 2021, 11:55pm UTC](https://forums.ankiweb.net/t/flash-when-displaying-cards-with-css-imported/15121/3 "2021-11-21T23:55:54Z")

</div>

Sounds like it, yes.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 4:42am UTC](https://forums.ankiweb.net/t/flash-when-displaying-cards-with-css-imported/15121/4 "2023-05-01T04:42:53Z")

</div>

Closed on May 1, 2023, 4:42am UTC


