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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:30:55+00:00 2026-06-02T00:30:55+00:00

I have a javascript application and i dont know what is a better practice

  • 0

I have a javascript application and i dont know what is a better practice for loading data.
For example, i have a contact table with my contact informations (FirstName, LastName, Addresses, PhoneNumbers, Website etc.). So now i will show these informations and i make two “lists”. In the first list, i will show all my contacts but only with the attributes “FirstName” and “LastName” and if i click on a contact, i will show all informations (FirstName, LastName, Addresses, PhoneNumbers, Websites etc.).

Is it better to load the whole informations at a time or load the “detail” informations only if i click on a contact?

  • 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-02T00:30:56+00:00Added an answer on June 2, 2026 at 12:30 am

    Depends on the usage and the network, here are some pros and cons of either way.

    Load everything at once into JSON, show what is needed/selected:

    Pros

    • If data doesn’t change much, can be easily cachable
    • No AJAX, very simple
    • After the first load, everything happens “instantly”

    Cons

    • Could hurt you if the data slug is large enough

    Get Individual Info via AJAX:

    Pros

    • Good if data is constantly changing
    • Good if each Contact’s data is large enough to warrant a separate ajax call
    • Good if network latency isn’t too horrible

    Cons

    • Overkill for small datasets
    • Adds Complexity

    So if your dataset isn’t all that huge, I would go with the simple route.
    If it is a large or constantly changing dataset, I would go with the AJAX version.

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

Sidebar

Related Questions

I have been working on facebook application and you know on facebook native javascript
I have a javascript application and when I run it on firefox I am
I have a Host Javascript Application, which not use AMD, BackboneJS or RequireJS but
I have included Javascript with <%= javascript_include_tag application %> in my Rails 3.2 application.
I have a web application written in pure JavaScript (no pre-generated HTML except for
I have web application of which major part is javascript. I request images from
I have an application with most of the code written in javascript. I am
I have a web application that uses TONS of javascript, and as usual, there
I have about 2000 lines of javascript code for my application. A lot of
I have a web-based application which is very highly reliant on jquery / javascript,

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.