in reply to [WEBPERL] dynamically importing non-bundled modules via http

This is great, thank you very much!

Just a note, no JavaScript is required, this should also work the same with the code translated to Perl like I showed here :-)

  • Comment on Re: [WEBPERL] dynamically importing non-bundled modules via http

Replies are listed 'Best First'.
Re^2: [WEBPERL] dynamically importing non-bundled modules via http
by LanX (Saint) on Nov 10, 2018 at 17:02 UTC
    > with the code translated to Perl like I showed here :-)

    I wanted to have a mostly pure JS solution to eliminate possible other problems in your object wrapper.

    And XHR is not the only possibility to fetch data, FF has even a fetch function, and emscript offers a wget method.

    Having a browser compatibility switch inside JS to fix incompatibilities is the approach I'm used to, i.e. xfetch could adapt to various contexts.

    I tried to design my code as flexible as possible, feel free to patch functions according to your needs. :)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice