Fix: Hide iframe until loaded to prevent flash

This commit is contained in:
Luc Mcgrady 2025-10-30 18:00:09 +00:00
parent 7561bf8d6a
commit fc8a2f9739
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C
2 changed files with 2 additions and 0 deletions

View file

@ -32,5 +32,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
iframe { iframe {
width: 100%; width: 100%;
height: 100%; height: 100%;
visibility: hidden;
} }
</style> </style>

View file

@ -37,6 +37,7 @@ export class ReviewerState {
iframe: HTMLIFrameElement | undefined = undefined; iframe: HTMLIFrameElement | undefined = undefined;
onReady() { onReady() {
this.iframe!.style.visibility = "visible";
this.showQuestion(null); this.showQuestion(null);
addEventListener("message", this.onMessage.bind(this)); addEventListener("message", this.onMessage.bind(this));
} }