You can try this code: console.log("preloader events:","e.event=", e.event, "e.progress=", e.progress, "e.reason=", e.reason);
What's your goal?
Thanks for the response.
The goal is to determine if code is firing in the preload loading code area. I copied and pasted your code in the loading section. When I preview the Edge project in the browser, the console is not displaying the console.log message. So it appears this code is not executing.
A simple console.log("Hey, it worked"); message should have been sufficient.
I'm a little confused why this doesn't work, or maybe it shouldn't work.
The preloader shows while the composition is getting ready, when it's ready preloader's css display is set to none.
So, you can't catch its loading using compositionReady or any other event listener.
If you want to know when exactly it gets loaded and unloaded then you have to download unminified version of edge runtime from here.
And then add console.log statements in functions like processPreloader and fnLaunch, where preloader is loaded and then unloaded respectively when composition is ready.
To use this unminified version, rename the file from edge.5.0.0.js to edge.5.0.0.min.js, and replace the existing edge.5.0.0.min.js file from composition edge_includes folder with this file.
ah! you upgraded.
Thanks for that explanation. For my purpose, that would be a lot to go through.
I don't know how one would debug a custom preloader if you can't watch the code execute. Unless of course you go through the trouble of downloading the unminified version.