Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6022853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:55:08+00:00 2026-05-23T03:55:08+00:00

In Rails 3.1 there’s the option to enable HTTP streaming so that your page

  • 0

In Rails 3.1 there’s the option to enable HTTP streaming so that your page can be brought down in chunks. In the Railscast on this feature, Ryan recommended that it would be a good idea to enable this so that your CSS and JavaScript can be pulled down while the rest of your page is still being rendered.

I’ve always followed the guideline that scripts should be at the bottom of the page after all the page content is loaded so that it would reduce perceived loading time, but by doing this it won’t be taking advantage of the HTTP streaming.

What do you think is the best practice now?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:55:08+00:00Added an answer on May 23, 2026 at 3:55 am

    I think this is an excellent question; one for which I felt compelled to Google for an answer.

    The argument for putting script assets at the bottom of the page was to prevent blocking a browser’s renderer that could otherwise be painting pixels on the screen to keep the user busy while the rest of the page’s functionality loaded. With HTTP streaming, we’re talking about being able to do something about the server being the bottleneck. While we wait for all those expensive database queries and backend service calls to finish, we can load JS/CSS assets.

    It seems to me that there’s a tipping point around which you should <head> your assets or not <head> your assets. This is only a net performance gain if your JS/CSS assets can be downloaded before your server has the rest of the response ready.

    Don’t <head> a page’s assets if:

    • You’re serving the page out of a server-side cache
    • Your server’s response time is faster than your JS/CSS’ actual asset load time (when calculating load time, consider carefully whether those assets are likely to have already been cached on the client side or not)

    Do <head> a page’s assets if:

    • Your server’s takes longer to respond than it would take to load all of your JS/CSS assets while waiting

    Does that sound about right?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any gem which works on Rails 3 that can show which part
I've found a couple of different twitter gem (for ruby-on-rails) out there: http://twitter4r.rubyforge.org/ http://twitter.rubyforge.org/
Is there a Rails plugin or a rubygem that gives you a starting point
Are there any gems out there for Rails 3.2.1 that generate website thumbnails? I
If there's an exception in a Rails application, one gets an error page with
In my Rails application there is a model that has some has_one associations (this
In rails is there anything available that if a user uploads a document to
Is there a rails (or other javascript framework) plugin that does the auto suggest
Is there a special way to create lists from models in rails that allows
Lets say that on top of my Rails app there is a bar with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.