i am creating website using nunjucks and express, its king of blog website and content coming from prismic. i want to load one script file for active campane form when user navigate from blog list page to any blog detail page, after navigate to detail page. will get script URL from prismic and I want to execute that script in HTML file.
its working while refresh the detail page but its not working when navigate from one page to another pages.
i am creating website using nunjucks and express, its king of blog website and content coming from prismic. i want to load one script file for active campane form when user navigate from blog list page to any blog detail page, after navigate to detail page. will get script URL from prismic and I want to execute that script in HTML file.
its working while refresh the detail page but its not working when navigate from one page to another pages.
here is some sample code of my website
Before Refresh
After Refresh
i need after refresh html without refreshing page