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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:40:13+00:00 2026-06-17T07:40:13+00:00

We’ve come across a slight issue with loading of multiple partial views via Ajax

  • 0

We’ve come across a slight issue with loading of multiple partial views via Ajax that I can’t narrow down.

The page loads 6 partial views on the click of a button.

We originally had the partial views rendered on a single page by the server, however this meant that the processing ran in series and the page didn’t return very quickly.

So I created a little bit of javascript that would run and async ajax request to refresh them all (note that the partial view url is rendered in the markup to make this easier, temporarily).

function refreshAllPartials() {
    $('div.partial').each(function () {
        var partialView = $(this);
        var partialViewUrl = $(partialView).attr('partialUrl');
        var parent = $(partialView).parent();
        $(parent).empty();
        $.ajax({
            url: partialViewUrl,
            type: "GET",
            async: true,
            success: function (response, textStatus, jqXHR) {
                $(parent).html(response);
            }
        });
    });
}

Now, the issue is that although the each of the partial view requests takes around 0.7s to return (checked using Fiddler), the output from Firebug shows something thing different.

Firebug output

The output from fiddler is consistent within a few milliseconds, however the firebug output and the visual effect to the user, seem to keep changing.

I’m guessing there is something I’m missing about how the javascript works, and how rendering works, but maybe I’m just doing something wrong?

I’m using ASP.NET MVC3, however, I’m not sure it’s relevant as Fiddler is showing that IIS is returning the data in a timely manner.

  • 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-17T07:40:14+00:00Added an answer on June 17, 2026 at 7:40 am

    This issue is that the controller actions are not marked as only requiring Read access to the Session state.

    There is an “feature” of the SessionState in ASP.NET that only 1 request can have exclusive access the session, and all other requests are then “queued” behind it.

    All I needed to do was separate the action methods that do not need Write access to the session into another controller and add:

    [SessionState(System.Web.SessionState.SessionStateBehavior.ReadOnly)]
    

    as an attribute to the new controller.

    viola, very performant site now, very snappy.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I used javascript for loading a picture on my website depending on which small
I have a jquery bug and I've been looking for hours now, I can't
I've got a string that has curly quotes in it. I'd like to replace
I have a small JavaScript validation script that validates inputs based on Regex. I
I have a French site that I want to parse, but am running into
I am doing a simple coin flipping experiment for class that involves flipping a
I've tracked down a weird MySQL problem to the two different ways I was

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.