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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:00:40+00:00 2026-06-01T10:00:40+00:00

For maximum load speed and page efficiency, is it better to have: An 18MB

  • 0

For maximum load speed and page efficiency, is it better to have:

  1. An 18MB JSON file, containing an array of dictionaries, that I can load and start using as a native JavaScript object (e.g. var myname = jsonobj[1]['name']).
  2. A 4MB CSV file, that I need to read using the jquery.csv plugin, and then use lookups to refer to: var nameidx = titles.getPos('name'); var myname = jsonobj[1][nameidx]).

I’m not really expecting anyone to give me a definitive answer, but a general suspicion would be very useful. Or tips for how to measure – perhaps I can check the trade-off between load speed and efficiency using Developer Tools.

My suspicion is that any extra efficiency from using a native JavaScript object in (1) will be outweighed by the much smaller size of the CSV file, but I would like to know if others think the same.

  • 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-01T10:00:42+00:00Added an answer on June 1, 2026 at 10:00 am

    What is your situation? Are you writing some intranet site where you know what browser users are using and have something like a reasonable expectation of bandwidth, or is this a public-facing site?

    If you have control of what browsers people use, for example because they’re your employees, consider taking advantage of client-side caching. If you’re trying to convince people to use this data you should probably consider breaking the data up into chunks and serving it via XHR.

    If you really need to serve it all at once then:

    1. Use gzip
    2. Are you doing heavy processing of the data on the client side? How many of the items are you actually likely to go through? If you’re only likely to access fewer than 1,000 of them in any given session then I would imagine that the 14MB savings would be worth it. If on the other hand you’re comparing all kinds of things against each other all the time (because you’re doing some sort of visualization or… anything) then I imagine that the JSON would pay off.

    In other words: it depends. Benchmark it.

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

Sidebar

Related Questions

What's a reasonable maximum size that a cross-platform application could allow a text file
I have a GridPanel which should load a maximum number of resources. If there
I have some data in mysql that I load up in php and draw
What is the maximum amount of data I can load onto a form control?
How can I configure the maximum memory that a query (select query) can use
Consider the following html page, which can load in many large png files: <html>
Can I set maximum size for an actor's mailbox in Scala? Take the Producer-Consumer
I have a J2EE project running on JBoss, with a maximum heap size of
Here is the scenario: I have run a trace for few hours during maximum
How can I set the maximum amount of characters in a UITextField on 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.