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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:04:50+00:00 2026-06-16T06:04:50+00:00

The first time my backbone.js application loads, it will take a solid 6 seconds

  • 0

The first time my backbone.js application loads, it will take a solid 6 seconds of a blank screen before the templates get loaded. We have a bit of javascript library bloat and the build process is not perfect yet, but these are separate issues.

I’m using backbone-boilerplate with require.js and I would like to have sort of a gmail type loader which will show up while all the assets,data,templates get loaded in and rendered so we don’t have just a blank loaded page.

Is there anyway to do something like this?

  • 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-06-16T06:04:51+00:00Added an answer on June 16, 2026 at 6:04 am

    How I’ve solved this is to include an animated spinner GIF in the index.html:

    <html>
      <!-- header with scripts etc -->
      <body>
        <img id="spinner" class="centered" src="/images/spinner.gif"></img>
      </body>
    </html>
    

    And when all the assets have been downloaded, models initialized and the application’s main view is ready to be rendered, I simply replace the spinner with the content:

    var appView = new AppView().render();
    $("img#spinner").replaceWith(appView.el);
    

    It doesn’t show progress per se, but it lets the user know loading is taking place.

    There might be a way to hook up to the requirejs loading events, but I’m not aware of one. If you are planning to minify and combine all the resources into a single file, this would be less useful anyway, because it’s not possible to track progress of the download of a single file very accurately.

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

Sidebar

Related Questions

I'm messing with backbone.js Todos for the first time. I'm trying to add a
This is my first time with backbone and I am trying to figure out
I'm using backbone for the first time while re-designing a major feature of an
I'm using backbone.js and rails. When backbone.js saves a model for the first time
This is my first time to use require.js with backbone, and I'm struggling to
The Case: One page app that display first time all items.(Use backbone.js + some
First time I ask something here, I hope you people will be as helpful
First sorry for my horrible english. This is the first time I'm using backbone.js.
I'm messing around with backbone.js for the first time and am also new to
I've been struggling through my first Backbone app and have started to get the

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.