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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:27:23+00:00 2026-05-26T08:27:23+00:00

Since cookies are server-side and Localstorage is client-side, which is the fastest for the

  • 0

Since cookies are server-side and Localstorage is client-side, which is the fastest for the user to retrieve? (ref. Local Storage vs Cookies)

I assume if the client’s machine is slow, then cookies are faster? Or that makes no diffrence?

I am using both localstorage & cookies for a project and both are retrieved using jQuery. That means, jquery has to get loaded, then the data is being retrieved.

How can I make this faster? I don’t know how both work. For example, some say that Cookies are being retrieved once the HTML is trying to load before the style’s and js files and others say when DOM is ready.

Does anyone know accurate details about which is faster for the user to retrieve?

Thank you

  • 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-05-26T08:27:24+00:00Added an answer on May 26, 2026 at 8:27 am

    Since cookies are server-side and Localstorage is client-side, which is the fastest for the user to retrieve?

    You’re starting off with an incorrect assumption. Cookies are stored client-side as well. Both localStorage and cookies are stored client side.

    The difference however, and that cookies can be set, manipulated from the server side. localStorage is only workable from the client side.

    I assume if the client’s machine is slow, then cookies are faster? Or that makes no diffrence [sic]?

    They are such lightweight operations I wouldn’t worry about speed.

    Performance between the two is not a factor for choosing one. It’s what are your needs.

    Cookies:

    1. Have worked in browsers for a long time. Every modern, and not so modern, browser support cookies.
    2. Can be accessed and manipulated server side.
    3. Are typically limited to a few kilobytes, depending on browser.

    localStorage:

    1. Is a relatively new concept. Not all browsers support it. IE 6, 7 for example, and you’re out of luck.
    2. Is inaccessible from the server side. You could make an AJAX call back to the server with data that is stored in localStorage.
    3. Have a W3C recommendation of being able to store 5 MB.

    How can I make this faster?

    I don’t think either one can directly introduce a performance problem. Other problems, like waiting for the DOM to be in ready state, waiting for script files to load; etc. can introduce slowdowns.

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

Sidebar

Related Questions

Since version 1.5 Subversion supports to have a local caching-proxy for the main Master-repository.
Since HTTP is a stateless protocol, when a client makes a number of requests
Okay, since none of you guys like my question, let me rephrase it. User
I'm considering ditching PHP's $_SESSION (i.e. the server-side session handling, to add some language-agnostic
I'm hosting my project in a test server (proyectos.legendsoft.com.ve), but since i need this
I've been asked to leave passwords and user names aside since most of the
I currently have a RESTful webservice which recognises a client via it's session. I
Since the support for BO and Crystal pretty much stinks when it comes to
Since I installed IE8 (Win XP) Visual Studio 2008 Pro stopped deebugging javascript. When
since IE won't render XHTML as XHTML, but treat it as HTML instead, when

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.