Skip to content

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

@Ornhoj

Description

@Ornhoj

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions