Odd behaviour (maybe bug)

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 5 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35770
    willfaulds59
    willfaulds59
    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 Marcinko
    Ernest 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!

    Best,
    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.