Flush HTML head

A

Arthur Chan

Hi Guys,

What command I should use to flush html head to client in my
layout.rhtml?

I've tried "$stdout.flush" but weird, the CSS total time seems to be
longer after using the flush.

Thanks!
Arthur
 
B

Brian Candler

Arthur said:
What command I should use to flush html head to client in my
layout.rhtml?

I've tried "$stdout.flush" but weird, the CSS total time seems to be
longer after using the flush.

If this is a problem with Ruby On Rails (the web application framework),
it would be best asked on a Rails mailing list. This one is for Ruby
(the programming language).

I'm pretty sure that in any web framework, you'll find that stdout is
not the socket connected to the client. In normal Rails request
processing, the whole response body is built *before* it starts being
sent back to the client. If you want to do low-level stuff like sending
progressive pages, look at the Rack API (which Rails now runs on top of,
and exposes as "Rails Metal").
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,169
Messages
2,570,920
Members
47,462
Latest member
ChanaLipsc

Latest Threads

Top