vue-script2 icon indicating copy to clipboard operation
vue-script2 copied to clipboard

VS2 isn't able to load scripts on client side render

Open Ornhoj opened this issue 6 years ago • 4 comments

Hi

I have tried to implement VS2 in my setup and i'm having issues with making it work as hoped.

My setup is a SPA with SSR abilities (based on VueHackernews demo). First time the script is running and the desired service is loaded, then navigating away and back will cause the service to do nothing.

I have tried the <script2 unload src="...." way and the

VueScript2.load('service.js').then(() => { console.log('loaded') });

Same result both times.

This is the service I'm testing with: <div data-widget-url="https://septima.dk/widget/config/layer.json"></div> <script src="https://widgetconfig.septima.dk/widgetconfig.js"></script>

Is there a way to force redownload or rerender/-load in vuescript2?

Ornhoj avatar Jan 20 '19 19:01 Ornhoj

I am having similar issue when changing layout, the JS files doesn't render after router redirection. Not sure if any one having similar issues.

hemanthgk10 avatar Jan 31 '19 04:01 hemanthgk10

I am having similar issue when client-side renders the page.

axdyng avatar Apr 24 '19 04:04 axdyng

It seems that no one cares about this problem.

ghost avatar Jun 28 '19 17:06 ghost

It seems that no one cares about this problem.

Happy to accept quality PRs.

taoeffect avatar Jun 28 '19 17:06 taoeffect