diff --git a/addons/website/static/src/js/website.snippets.animation.js b/addons/website/static/src/js/website.snippets.animation.js index 63ed2561a00..240b1825e88 100644 --- a/addons/website/static/src/js/website.snippets.animation.js +++ b/addons/website/static/src/js/website.snippets.animation.js @@ -58,9 +58,9 @@ }); }; - load_called_template(); // if asset is placed into head, move this call into $(document).ready - $(document).ready(function () { + load_called_template(); // if asset is placed into head, move this call into $(document).ready + if ($(".o_gallery:not(.oe_slideshow)").size()) { // load gallery modal template website.add_template_file('/website/static/src/xml/website.gallery.xml');