Skip to content

Commit

Permalink
Force Safari to stream immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Sep 25, 2024
1 parent ddf3476 commit 3118a28
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/flecks/shell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ def before_template
context[:rendered_shell] = true
end

def view_template(&)
template(shadowrootmode: "open", &)
def view_template
template(shadowrootmode: "open") do
div(aria_hidden: "true", style: "width: 0; height: 0; overflow: hidden;") { "0" * 512 }
yield
end

flush

Expand Down

0 comments on commit 3118a28

Please sign in to comment.