Start using PLASMA

Here we'll see how to use plasma

Plasma require some prerequiste to run

  • A html page (generally index.html)

  • the env.js file

  • a config [object]

  • a call to the script "final.js" [You 'll be able to change this see deployment]

<script>
    Window.debug_start = Date.now();
</script>

This code goes at the top of your index file (it's used by PlasmaDebug) to count loading and exec time

<script src="env.js"></script>
<script>
    const config = {
        host: "",
    }
</script>
<script defer src="final.js"></script>

At the end of the file you should have this. env.js define if the PlasmaDebug should be enabled

the const config define host for Ajax call

final.js (who don't exist for now) is the compiled javascript code for plasma

If your index.html file have these lignes of code you can go to the next section

Last updated