Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1426269

    Hello, we are currently using WP Rocket and are encountering performance problems in this combination when the fold/unfold function for text blocks is active. Since the function comes from the core of the theme, we can’t really do anything about it at the moment and are forced to exclude the entire core from the optimization in WP Rocket. Unfortunately, this means that the site performs extremely poorly in terms of pagespeed.

    The feature is relatively new. Are there any other experience reports or known issues? How can this be solved without losing the fold/unfold function?

    Many thanks in advance for your help.

    #1426318

    Hey emilconsor,

    Thank you for the inquiry.

    Do you also have the Enfold > Performance > File Compression settings enabled? You might need to disable these settings when the cache plugin’s CSS/JS optimization options are turned on. We didn’t find any element with the fold/unfold option when we checked the page above, but it looks like you have found an alternative.

    Best regards,
    Ismael

    #1426355

    Hi, thanks for checking.

    The feature was temporarily deactivated because it was causing problems. This is not a real alternative but rather an emergency solution.

    We have not activated file compression.

    Regards

    #1426381

    Hi,

    Thank you for the update.

    Is there a staging version of the site? Also, where can we find check the element with the fold/unfold option? We couldn’t find any on the page above. Please provide the link to the staging site and post the login details in the private field.

    Best regards,
    Ismael

    #1437780

    Hi,
    sorry for the long wait.
    We have a staging version. I’ve put the link in the private content.

    The fold/unfold function for text blocks is currently active for the text below “Einfach mal raus und alles hinter sich lassen…”.

    #1437978

    Hi,

    Thank you for the update.

    We get an error in the console when the WP Rocket plugin is activated. The error is generated from the themes/SI-SUITES/js/custom.js file:

    jQuery(document).ready(function() {
        var sections = jQuery('.avia-section')
          , menu = jQuery('.av-submenu-container')
          , nav_height = menu.outerHeight();
        jQuery(window).on('scroll', function() {
            var cur_pos = jQuery(this).scrollTop();
            var activeMenuItem = menu.find('.active-menu-item');
            sections.each(function() {
                var section = jQuery(this);
                var top = section.offset().top - 300;
                var bottom = top + section.outerHeight();
                if (cur_pos >= top && cur_pos <= bottom) {
                    var activeLink = menu.find('a[href="#' + section.attr('id') + '"]');
                    activeMenuItem.removeClass('active-menu-item');
                    activeLink.addClass('active-menu-item');
                    if (activeLink) {
                        var activeItemOffset = activeLink.offset().left - menu.offset().left;
                        menu.scrollLeft(activeItemOffset)
                    }
                }
            })
        })
    })
    

    Did you add this script? Please remove the script temporarily, then check the page again.

    Best regards,
    Ismael

    #1439641

    Hi Ismael,

    I’ve removed the code from the staging site but I’m not entirely sure what that accomplishes.
    Sure now the console error is gone but that doesn’t make the fold/unfold function from enfold anymore performance friendly.
    Or am I missing something?

    #1439722

    Hi,

    The error is gone from the console and the fold/unfold function seems to be working correctly now. What do you mean by “performance friendly”?

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.