Skip to content

Commit 4daa8c2

Browse files
committed
feat: ✨ made initial content container invisible once content has loaded
1 parent e504f6d commit 4daa8c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/perseus/src/shell.rs

+2
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ pub async fn app_shell(
228228
let initial_html = initial_container.inner_html();
229229
container_rx_elem.set_inner_html(&initial_html);
230230
initial_container.set_inner_html("");
231+
// Make the initial container invisible
232+
initial_container.set_attribute("style", "display: none;").unwrap();
231233
checkpoint("page_visible");
232234
// Now that the user can see something, we can get the translator
233235
let mut translations_manager_mut = translations_manager.borrow_mut();

0 commit comments

Comments
 (0)