Knowledge base | Judge.me

Setup Preview Badge for products rendered by JavaScript (AJAX)

In some cases, your collection pages can have pagination or infinite scroll, which load more products using JavaScript without reloading the whole page. Then our Preview Badge need an extra theme fix to work proper.

The fix will be as easy as adding 2 JavaScript lines into the position following the JavaScript code of your theme that renders more products.

The 2 JavaScript lines that you need to add:

judgeme.badge();
judgeme.customizeBadges();