If I use the library from a CDN server it works, when loaded from a local file it doesn’t.
The library is loaded in the HTMLHeader shared method (public).
' in HTMLHeader shared method - loading from CDN - OK Dim html As string html = "<script src=""//cdn.domain.com/editor/editor.js""></script>" return html
I tried opening the local editor.js as a webfile, stored in a session property “localjs”, it’s not working:
' in HTMLHeader shared method - loading from local file - NOT OK Dim html As string html = "<script src=""" + localjs.url + """></script>" return html
When debugging I can see the webfile exists and is found.
Looking at the browser debugger I can see the editor.js is there…
I don’t understand why it’s different when loading from a CDN or from a local file.
Any help appreciated !