Umbraco site - Slow

Our site is built on 8.5 version and it is not upt o date with the latest version. Recently for the past couple of days, the site became very slow to load the page. The slowness is on our test and prod server https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js and it is having the status of pending and taking 40 seconds to resolve it. The weird part is, i can access this link with no lag. I’ve looked into the logs, there are no errors. I’ve cleared the cache in the backend and no improvement. What is that it is causing this issue. Any help is appreciated. Thank you!


Here is a screenshot of the jquery where it displayed the number of seconds it took to load.

<html>
<head>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
</head>
<body>
    <p>Test</p>
</body>
</html>

I did run the html file on my local machine and do not see any delay

Have you tried moving the jquery.min.js file to your web directory rather than using a CDN and then change the file reference to it? That way you are not relying on the loading speed of the CDN.

Yes, I did that too.. No change.

I think you are listing the initiator column here.. so it’s not that jquery.min.js is being loaded multiple times..
It’s that code on your site is using jquery, and hence the initiator, what’s in the first column for the actually call?
Maybe a callout to an Api that is slow, or pending.. you could add a timeout to the calls so at least you get graceful degradation?

1 Like

first column has the site name

As Mike pointed out, this is definitely an XHR request being made, via jQuery.

You can add a column to list the domain this request is going to, but I suspect the request is being made back to your site.

I can see at the bottom that your page has a load time of about a minute. So my educated guess is that you have some code running server-side on your site, both when this page loads, and when that endpoint is called via jQuery, that is taking about a minute to run.

Luckily Umbraco has tools to help you get to the bottom of this.

To start with, try using miniprofiler. It will do a basic profile of the code that runs when you request a page and might show you where the slowdown is coming from.

Thank you for the inputs, found the root cause and it is a code that is making a call and waiting. This is fixed.

1 Like