It was a bug that was fixed here I believe https://github.com/NodeBB/NodeBB/commit/ea2bd33bfa10564591f2d8ca69bd5cd7d252ee1d, it will be released in 1.10.20 julianlam committed to NodeBB/NodeBB fixes #6608, restored template values in widget containers
What is the right way to load external JS and widget in template?
Is there a way to include external js for widgets like : https://www.tradingview.com/widget/ in template . Because when I try it, on first load it shows only the widget and nodebb page does not load, on refresh it loads the page also.
I see the same issue happens when pasting the code they give in a html widget .
Load it with require(), and make sure you specify a container for it.
This works in an HTML widget:
@psychobunny do you think this is what is causing my adsense related problems?
I've manually put in external <script> tags and they've worked, it probably won't work if it needs to be in the <head>, in that case you should put that bit in the custom HTML page in the ACP
Ok. Will try and see if this improves the render / load.