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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:11:01+00:00 2026-06-04T20:11:01+00:00

The normal way to bootstrap your app with backbone as described in the docs

  • 0

The normal way to bootstrap your app with backbone as described in the docs is this

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

Here, we are using the server side tags <%= ... %>, <?php echo ... ?>, etc.

But in my app I am passing very thin HTML from the server. Something like this

<html><head></head><body></body>
<script src="init.js"></script>
<html>

In this case how should I bootstrap my data for my backbone models and collections?

Backbone recommends against using fetch

Note that fetch should not be used to populate collections on page load — all models needed at load time should already be bootstrapped in to place. fetch is intended for lazily-loading models for interfaces that are not needed immediately.

But I wonder if that’s the right thing to do in cases like mine?

  • 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-04T20:11:05+00:00Added an answer on June 4, 2026 at 8:11 pm

    I didn’t want to put my opinion as an answer, but I think I can say, “there is no reason, technical or otherwise, not to use fetch to load your models on page load in this use case”. 8)

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

Sidebar

Related Questions

This looks like an issue to me. Normal way Backbone works is using same
The normal way to do this would be: var resultSelect = document.getElementById(resultSelect); resultSelect.size =
Is the normal way to do this to just make 2 cols in my
Normal way looks like this: pStmt = conn.prepareStatement(SELECT DETAILS FROM PROGRAM_HISTORY WHERE id =
I'm new at Ruby, and failing to Google this easy question: What's the normal
Normal way to make a new object: std::string date1 = 10/1/2010; Date d1(stringToChar(date1); But
In a C# winforms app what is the normal way to persist the data
I am using the normal way of creating html bits by combining backbone.js and
The normal way that I work is to have a small eshell buffer and
In javascript, is there any different between these two: // call MyFunction normal way

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.