Quicker loading times
This documentation walks you through the steps for setting up nostojs
client script on your theme with higher priority, which aims to loading Nosto faster.
Approach
Please follow the steps outlined below for setting up your theme:
Place the below content inside the
head
section oftheme.liquid
file, above the line that says{{ content_for_header }}
.This accomplishes two results: i. Initializes
nostojs
JavaScript api ii. Stops Nosto from loading recommendations by default\Place the following snippet, in the theme liquid template files that contains
nosto_element
elements, below all thenosto_element
snippets:This line will make sure Nosto loads recommendations on after the
nosto_element
elements are loaded.
Last updated