Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Ornhoj opened this issue Jan 20, 2019 · 4 comments
Open

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

Ornhoj opened this issue Jan 20, 2019 · 4 comments

Comments

@Ornhoj
Copy link

Ornhoj commented Jan 20, 2019

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?

@hemanthgk10
Copy link

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.

@axdyng
Copy link

axdyng commented Apr 24, 2019

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

@ghost
Copy link

ghost commented Jun 28, 2019

It seems that no one cares about this problem.

@taoeffect
Copy link
Owner

It seems that no one cares about this problem.

Happy to accept quality PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants