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 946353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:54:03+00:00 2026-05-15T22:54:03+00:00

On a Ruby on Rails development environment, a page will be shown after 30

  • 0

On a Ruby on Rails development environment, a page will be shown after 30 seconds on Firefox, but takes 90 seconds on IE 8 (with IE 7 Compatibility Mode).

Further investigation shows that it should be Javascript that slowed down the page, because if Javascript is turned off, then the page content will also show in 30 seconds.

Because there are probably 7 or 8 jQuery plugins, Facebook scripts, and Google Analytics script, it would take quite some time to move all the Javascript code to the end of the HTML file, (which should speed up the page content view so that content is shown after 30 seconds, just like Firefox), is there a way to force IE to show page content before finish executing all the Javascript code?

I think IE might be waiting for all Javascript code to finish first, because what if there are document.write() statements, which should be within the HTML… Firefox or Chrome doesn’t wait for that but display the content right away.

(on the production server, the page will be displayed on Firefox after 5 to 7 seconds, because a lot of the “partials” (HTML sub-components) are cached. IE 8 takes a lot longer too, about 40 seconds or so.)

P.S. A strong reason why the Javascript is embedded throughout the HTML may be that, say if there is an “Image Carousel”, then the HTML code is in a “partial”, which is an HTML file generated by an HAML file, and all the HTML as well as the Javascript code are in this file, for better encapsulation, instead of having HTML in one file, and the Javascript in another file, but I wonder what if all these Javascript code blocks only use jQuery’s $(document).ready(function() { ... }), then will these code block slow down the page display on IE?

  • 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-15T22:54:03+00:00Added an answer on May 15, 2026 at 10:54 pm

    Unfortunately it’s safe to assume that your jQuery plugins are all waiting for the dom to fully load in IE. One solution is to try to speed up the page load. Here are some good ways to do that:

    1. Don’t host jQuery yourself. Load it from either Google or the Microsoft CDN. That will result in one less connection tied to your web server.
    2. Dynamically load content via jQuery. It’s hard to rewire stuff after the fact, but it certainly will allow you to progressively load content and create the impression that the page is loading faster.
    3. Put all the javascript at the bottom of the page if possible.
    4. Eliminate calls to document.ready in jQuery where possible.
    5. Lazy load images using this jQuery plug-in: http://www.appelsiini.net/2007/9/lazy-load-images-jquery-plugin It’ll result in less downloading of content during the initial display of the page.
    6. Use a third party CDN for hosted scripts and images, or in the least another domain. Loading off the same domain is a bottleneck
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 483k
  • Answers 483k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer With firebug or web inspector you can use monitorEvents: monitorEvents(myDomElem);… May 16, 2026 at 7:02 am
  • Editorial Team
    Editorial Team added an answer In most flavors, when a capturing group is repeated, only… May 16, 2026 at 7:02 am
  • Editorial Team
    Editorial Team added an answer I had disabled the EnableViewState, but not the EnableViewStateMac field.… May 16, 2026 at 7:02 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.