Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #831052

    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(); }

    • This topic was modified 7 years, 5 months ago by Sowmedia.
    #831200

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Why is popup_elements() executed on every admin page?’ is closed to new replies.