On Thu, Jun 16, 2011 at 8:45 PM, steveluscher <[email protected]> wrote:
> There's a discussion going on at StackOverflow about whether, with the > advent of HTTP streaming in Rails 3.1, it's time to bend the rules > with respect to the time honoured tradition of putting <script> tags > before the closing </body> tag. > > http://stackoverflow.com/questions/6116436/rails-3-1-http-streaming-js-in-head-or-bottom-of-body/6376719#6376719 For the general case, I think unfortunately they are still going to go to the bottom. Reason is Safari for Mac buffers 1024 bytes before it starts to issue requests for assets (and Safari for iPhone and iPad buffer 512 bytes). Since the head of a document is typically smaller, Safari users would still get the ordinary bad experience. Firefox, Opera, and IE8 do not buffer, and Chrome buffers 252 bytes, according to some test I've done together with Hongli Lai. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

