# Rails: Flush HTML head

**URL:** <https://www.ruby-forum.com/t/rails-flush-html-head/196989>\
**Category:** Rails\
**Created:** [August 10, 2009, 2:00pm UTC](https://www.ruby-forum.com/t/rails-flush-html-head/196989 "2009-08-10T14:00:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![artchrst](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e36b37/32.png) [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Post date:** [August 10, 2009, 2:00pm UTC](https://www.ruby-forum.com/t/rails-flush-html-head/196989/1 "2009-08-10T14:00:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![artchrst](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e36b37/32.png) [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Post date:** [August 10, 2009, 2:53pm UTC](https://www.ruby-forum.com/t/rails-flush-html-head/196989/2 "2009-08-10T14:53:13Z")

</div>

On Aug 10, 1:00 pm, Arthur C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> 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.

Given that on a normal rails app $stdout doesn’t go anywhere (except  
possibly a log file somewhere), what were you trying to do ?

Fred
