I am need to use trip advisor widget in my website. It works fine when the page is refreshed. But when navigated through links the widget doesn't show up. Also it gives an error saying that the document couldn't write since the element with id is not found.
I think the problem is because the script looks for the element with the specified id even before the page renders. The below one doesn't work for me.
Including tripadvisor widget in angularjs app
Is there a better solution?