• Resolved matchlessweb

    (@matchlessweb)


    My site is plenty fast for my needs, but I’m always looking to improve. Can anything be done about Algolia Scripts “blocking” as seen in this GTmetrix report

    Screenshot of the scripts in question highlighted

    I like using the Flying Scripts plugin when possible to delay the execution of JS not required for page render. But it seems if I put the Algolia Search w/ WP scripts into Flying Scripts, it causes a console error which I’ve previously written in about here.

    I imagine it’s necessary for this plugin to run its JS during initial page load for it to connect to the Algolia API? If that’s currently true, can I make a feature request that in the future these scripts be able to have their execution delayed to improve load times (if that’s even possible). I realize I may be making a request out of blissful ignorance of how the plugin works. But that’s where my head is on this today.

    Any tips?

    • This topic was modified 5 years, 9 months ago by matchlessweb.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Very sorry for the long delay in response here. Has anything changed or improved on this front? or are you still seeing the similar results above?

    Thread Starter matchlessweb

    (@matchlessweb)

    The same result happens if the scripts are delayed with Flying Scripts.

    I imagine the plugin may require those scripts to load in their original position or deferred/async for the appropriate connection to Algolia’s API to be established?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Shouldn’t matter TOO much where, as long as they’re loaded once needed. Order may be important at times like if something relies on jQuery being available. However, that wouldn’t apply to this case of just performance worries. The order topic would apply to that other thread about broken autocomplete.

    Looking at your GTMetrix report I am seeing the blocking spots, however when I look at your page myself and open up the network tab in my browser tools, I’m seeing the cached/minified version getting loaded and everything is pretty smooth and quick. Pretty good overall results too based on your grades there.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Algolia Scripts Blocking’ is closed to new replies.