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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:47:47+00:00 2026-06-03T18:47:47+00:00

In an asp.net mvc3 view, I have a $.get() ajax call to a controller

  • 0

In an asp.net mvc3 view, I have a $.get() ajax call to a controller action which returns 80 lines of html code. Is it faster (from the .get call to finished rendering) to do the dom element creation on server side then just pass in one huge element to be appended to the DOM, or is it faster to just pass in a lot of raw data to the client side and then do all the DOM creation and appending there?

The html returned (or generated) creates a dashboard with about 5 layers of nested divs, some spans, text, etc.

  • 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-03T18:47:49+00:00Added an answer on June 3, 2026 at 6:47 pm

    I suggest you do your own benchmarks because this depends on a lot of factors, like your audience device (computer/mobile), internet speeds, data plan etc. Know your target audience first and do what’s better.

    Returning formatted HTML is heavy on the traffic, but allows you to append it directly to the DOM. This is fine for people on a laptop/desktop who have broadband.

    Returning raw data is faster but will make you create the DOM on the spot. However, this is usually ideal on high powered machines or mobile devices who have contracts whose payments are based on the amount of data transferred.

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

Sidebar

Related Questions

I've got the following ASP.NET 4 MVC 3 code in a view: @Html.TextBoxFor(model =>
I have a Razor view in my asp.net MVC3 application with a dropdownlist like
I have an ASP.Net MVC 3 application that uses a jQuery .ajax call to
In asp.net mvc3 I want to have a generic method which adds a viewmodel
I have tried everything, even uninstalling asp.net mvc3, and I can't get HandleError global
I am using ASP.Net MVC 3 Razor view engine. I have a requirement to
This is in an asp.net mvc3 view. The @ markup is from the razor
I'm trying to create a drop down list in an ASP.NET MVC3 view based
In ASP.NET MVC3, when a view model is passed into a view using return
I'm trying to add a new view, 'Graph', to my asp.net mvc3 under 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.