This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Odd behaviour (maybe bug)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35770
    willfaulds59willfaulds59
    Participant

    This may be todo with my setup (though I can’t think why) but if I enable the option Layout options – > Search box layout – > Hide the search box completely, display settings only?

    A page loading the search via a shortcode increase its load time significantly waiting for asp-core.js with the setting active.

    Oddly the load time (time for the Frontend filter to appear) is even adversely affected if I used custom CSS to display:none the search bar which I’m very confused about.

    The following custom CSS on the div did not affect load time

    visibility: hidden;
    height: 0;

    Oddly the effect is not seen with the following PHP filter active

    add_filter( 'asp_load_css', 'asp_stop_load_css', 10, 1 );
    function asp_stop_load_css( $stop ) {
       return true;
    } 
    #35779
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    May I ask how did you exactly measure that?

    I tried to measure the execution time via lighthouse and performance reports, but the asp-core.js script has the same execution time on my end for both cases.

    Thank you very much!

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