Skip to content

Commit

Permalink
feat: ✨ made initial content container invisible once content has loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
arctic-hen7 committed Sep 26, 2021
1 parent e504f6d commit 4daa8c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/perseus/src/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ pub async fn app_shell(
let initial_html = initial_container.inner_html();
container_rx_elem.set_inner_html(&initial_html);
initial_container.set_inner_html("");
// Make the initial container invisible
initial_container.set_attribute("style", "display: none;").unwrap();
checkpoint("page_visible");
// Now that the user can see something, we can get the translator
let mut translations_manager_mut = translations_manager.borrow_mut();
Expand Down

0 comments on commit 4daa8c2

Please sign in to comment.