Odd behaviour (maybe bug)

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 2 years, 7 months ago.

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

    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;
    Ernest Marcinko
    Ernest Marcinko


    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!

    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.