-
AuthorPosts
-
August 26, 2023 at 6:16 pm #1417199
wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-base.php
“Base class implements methods to handle modal popup templates”We profiled all the calls during the cart and checkout. This class uses by far the most ressources in the cart and checkout pages. It is quite a performance drag. Any chance we can switch that off? We do not have any modals in that process. Maybe it is a performance hit on other pages as well but in uncached pages it becomes very obvious.
Appreciate the support!
ElAugust 28, 2023 at 6:16 am #1417295Hey El,
Thank you for the inquiry.
The popup-templates-base class is only loaded in the backend, specifically when using the Advanced Layout Builder, so it shouldn’t affect the front end. How did you check the performance of the cart and checkout pages?
Best regards,
IsmaelAugust 28, 2023 at 9:32 am #1417306Hi Ismael,
It seems to be loaded in the frontend as well.
I was using “Code Profiler Pro” with a not-logged-in user. I used a woocommerce cart hash from another non-logged user with a filled shopping cart to simulate the request to the cart.
It loads tons of scripts but first page runner ups as far as enfold is concerned are sorted by execution time:
wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-base.php
wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-modal-elements.php
wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-template-builder.php
wp-content/themes/enfold/framework/php/function-set-avia-backend.php
wp-content/themes/enfold/framework/php/function-set-avia-frontend.php
wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php
wp-content/themes/enfold/functions.php
…Best,
ElSeptember 11, 2023 at 5:02 am #1418712Hi,
Sorry for the delay. Do you see the same result when you remove the woocommerce cart hash? Please provide the login details in the private field. We have tagged @Guenter to check the issue.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.