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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:00:14+00:00 2026-05-13T20:00:14+00:00

I’ve seen some similar posts, but nothing quite like this… I have a website

  • 0

I’ve seen some similar posts, but nothing quite like this…

I have a website (Sharepoint). When I access a particular page that has many custom-coded webparts on it, the page takes ~30 seconds to load. I’ve used Firebug and confirmed that the long load time is the server working (in the “Net” tab the webpage timeline shows ~30 seconds of “waiting”). I’m also sure it’s not javascript taking forever as disabling javascript doesn’t affect load times.

However, if I use just a stock .net WebClient and access the page, it only takes ~2 seconds to load.

Even weirder is that some clients do perform faster (not what I would expect if it was a server-side issue). But some clients (like IE 8 on XP) just hang until a server-side error occurs.

I also tried disabling cookies, thinking something on creating the cookie was causing a problem, still no luck at getting the page quicker.

I decided to get experimental and used fiddler. If I removed the User Agent string from the header, the results came back pretty quick, however the body of the response was significantly light. I’m too new at web development to understand what this means, though.

I’m relatively confident at this point that it truly is a server-side issue.

If anybody can help or shed some light, it’s greatly appreciated.

Update:
Alright, after comparing the contents of the two results, one with a user-agent of IE (or anything for that matter) and one without a user-agent in the header there is a very large difference (approx 3 times more content in the user-agent headered file).

The web-parts contain a large number of System.Web.UI.WebControls.Treeview objects. When the treeview “handle” is clicked, a table is displayed with data. In the results where a user-agent was supplied, these tables are populated with data (and there is quite a bit, this webpart is highly inefficient).

On the page where no user-agent is supplied, all the tags in the tables are replaced with anchors with javascript calls.

So, I think it’s clear now that the TreeView control in ASP.NET handles output differently depending on the user-agent in the header.

That being said, it appears (without further investigation) that the javascript I’m seeing injected instead of data is an AJAX call to get the data and display it more “when it’s needed”, which is great. Assuming this is the case, now I just need to know how to tell the TreeView control to do this all the time (I do have access to the source code).

Final Update: After some more intensive debugging and proformance profiling I’ve come to the conclusion that between the fairly sizeable amounts of data and the incredibly bad performance of the ASP.NET TreeView object, I’m gutting that in favor of a Telerik Grid control. I was hoping I could just tweak a few things but the more I looked into it the more I found that the TreeView just isn’t very efficient.

Thank you everybody for your help.

  • 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-13T20:00:15+00:00Added an answer on May 13, 2026 at 8:00 pm

    I would guess that SP is looking at the user-agent string and doing additional loading if certain parts are present. The other thing to check is to see if JS is being sent down (for the web-client version) and if there are more round-trips with IE than with the other clients.

    If I remember correctly (been a while) for IE identifying agents SP will send additional client side javascript to handle interactions with forms and accessing things like office and performing version control. I am not sure if that’s still true or not.

    Its worth using fiddler to compare two or three runs between your webclient, IE and say Firefox to see the differences. You can also copy your user agent string from IE and use it in your webclient and alternate browser runs to see if the behavior is purely from the user agent string.

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

Sidebar

Related Questions

this is what i have right now Drawing an RSS feed into the php,
I have just tried to save a simple *.rtf file with some websites and
I have a French site that I want to parse, but am running into
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
I want to count how many characters a certain string has in PHP, but
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti

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.