Tagged: performance
Hi there,
We’ve noticed the popup_elements() function of every Enfold Shortcode is executed on every page in the wp-admin; even when opening the Dashboard, going to permalink settings, etc. We don’t know why, but it seems unneccesary. We found the following solutino doesn’t seem to break anything, so maybe this could be a simple solution to reduce page load time on the backend:
File: /enfold/config-templatebuilder/avia-template-builder/php/shortcode-template.class.php
Replace line 279 from
$this->popup_elements();
to:
if(defined( 'DOING_AJAX' )) { $this->popup_elements(); }
Hey Sowmedia,
Thank you for sharing this snippet. I will share this with the team and see if this is something that can be changed in the future.
Best regards,
Jordan Shannon