Widget doesn't appear on page load

Modified on: Thu, Nov 9, 2017 at 3:29 PM

According to limitations of Shopify, the script of Instant search widget is loaded only after the whole page is loaded. That is why the widget is not displayed right after the page is opened.

As a workaround you can insert the code of the widget into the store template and it will be loaded faster. In order to do that, please follow these steps:

1. Go to search results page in your store system.

2. Open the source code of this page (CTRL+U) and find the line like the following one:

<script src="//www.searchanise.com/widgets/shopify/init.js?a=**********"></script>

Important: symbols ********** from the code below need to be replaced with API key from Searchanise admin panel → Dashboard.

3. Copy this line of code and paste it between these tags:


in the theme.liquid template right before the liquid tag {{content_for_header}} of your store.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.