• Resolved oneruffryder

    (@oneruffryder)


    Hey. I’ve seen the plugin loads 3 scripts on all pages. I use Algolia on one custom page and algolia’s way, not the plugin way. I do use the plugin to push content only.
    So a question, are these scripts needed in my case, as i believe php is doing that on the backend.

    Scripts are

    algoliasearch/dist/algoliasearch-lite.umd.js?ver=2.1.0
    automcomplete.js
    autocomplete-noconflict.js?ver=2.1.0

    In case if these scripts are not needed for my case, how i can deregister/remove them from loading.
    Thanks

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

    (@tw2113)

    The BenchPresser

    Good day @oneruffryder

    Do you have autocomplete enabled, over on that appropriate settings page?

    /wp-admin/admin.php?page=algolia
    

    All my findings for asset loading are showing that the autocomplete parts are dependent on the checkbox at the top of that page being checked. We register the scripts at the appropriate times to be available anywhere, but we don’t enequeue until we need them available.

    Thread Starter oneruffryder

    (@oneruffryder)

    Hey, sorry didnt see a reply. Autocomplete is turned off despite not being used. If i turn it of, and leave the search page only active (Use Algolia with Instantsearch.js), will the plugin automatically push all the next content to algolia? Thanks

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Updating posts and whatnot should push changes into your indices as you evolve your content. If you ever change what all gets indexed, you’ll want to do a bulk re-index so that everything gets updated.

    Everything’s set up to be pretty self managing.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Limit scripts’ is closed to new replies.