Sauter la navigation

[Résolu] Too slow to load the slider and the server cpu come up to 100%

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem: I would like to speed up the performance of my site.

Solution: Optimize images, concatenate scripts, and optimize animations.

This support ticket is created Il y a 6 années et 8 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Christian Cox Il y a 6 années et 8 mois.

Assisté par: Christian Cox.

Auteur
Publications
#879385

I am trying to: display a slider for featured properties in home page and in the property page.

Link to a page where the issue can be seen:
lien caché
lien caché

I expected to see: More faster on slider load and automatic pagination with ajax, and on open the property page.

Instead, I got: a very slowly site that saturate the server resources. Yesterday I have migrate the site on to a top dedicated hosting to have more resources (2 vCpu, 2gb vRam, ssd storage for database, I/O 2048 KB/s), but the results is the same as a basic shared hosting...

Why that and what should I do to have more faster?

#880985
fps.png
images.png
scripts.png

Hi, the main problem I see is that your images could be optimized (compressed) more, and you should consider loading fewer images when the page loads. None of the AJAX calls made by Views are blocking the page from rendering, and the time it takes for the server to send back the original page markup is really quite fast - 312ms. See images.png attached here. You can see that many of the images are over 200 KB, and each one of those takes about half a second to download. There's nothing Toolset can do about this - the images must be compressed better.

Next, look at the screenshot scripts.png. Your site loads dozens of JavaScript files and CSS files that could be minified and concatenated into a single file. That would also cut down on the number of resources being loaded from the server, which would speed up image load times significantly.

Finally, you've got a lot of animation going on that could be optimized a bit better, I'm seeing a fairly low FPS rate in the inspector during animations- see fps.png