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

  • Home
  • SEARCH
  • 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 8297553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:27:26+00:00 2026-06-08T15:27:26+00:00

I am learning about backbone, and from the examples and tutorials I have gotten

  • 0

I am learning about backbone, and from the examples and tutorials I have gotten this impression:

  • The initial GET / returns the skeleton page with backbone and the view templates.
  • Backbone uses the REST API to flesh out the page by GETting the data it needs and adding it into the DOM.

This works, but it seems wasteful in terms of additional HTTP requests, and latency from the perspective of the end user (minimum two round-trips before the page is visible. Actually three in my case, since the API must first ask which widgets are available, and then fetch the details on any available widgets….).

Is there an established, standard method for getting around this? My current candidates are:

  1. Ignore the problem.
  2. Embed the initialization data directly into the original page via inline javascript.
  3. Render the page as if backbone didn’t exist. When backbone finishes initializing, it will (hopefully) be in sync with the page as the user sees it. It can correct anything it needs to if things changed in the intervening couple seconds, but at least the user is not left hanging.
  4. Another solution I haven’t thought of?

Is there an established way to do this? Is it situation-specific? I am using Node / JS / Express.

  • 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-08T15:27:30+00:00Added an answer on June 8, 2026 at 3:27 pm

    Update: I think I found a solution, possibly the “accepted” solution, in Backbone’s documentation:

    Here’s an example using reset to bootstrap a collection during initial page load, in a Rails application.

    <script>
      var Accounts = new Backbone.Collection;
      Accounts.reset(<%= @accounts.to_json %>);
    </script>
    

    Calling collection.reset() without passing any models as arguments will empty the entire collection.

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

Sidebar

Related Questions

I've been learning a lot about backbone, backbone-relational and building web apps from reading
Just learning about with statements especially from this article question is, can I pass
Just learning about State monad from this excellent tutorial . However, when I tried
I have been learning about Delegation and Data Sources for iOS programming and need
I'm learning about how to manipulate the Membership class. I have added the Membership
I am just learning about foreign keys. I am simplifying my tables to this:
learning about loops (still a beginner) in VB.net. I have got the below code
While learning about NSOperation, I wondered why a completion block would have any advantage
Im learning about oauth and i have my application setup and im able to
Just learning about sql joins and things, and I have a question. Can you

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.