Hi Jeremy,
I am running an experiment that has a lot of media files. I added the Checkpreloaded() command to my code but I want to add a customize message to the preloading screen.
I saw in another reply this option to modify the text of the message:
const replacePreloadingMessage = ()=>{
const preloadingMessage = $(“.PennController-PennController > div”);
if (preloadingMessage.length > 0 && preloadingMessage[0].innerHTML.match(/^<p>Please wait while the resources are preloading/))
preloadingMessage.html(“Espere mientras los recursos se están cargando.<p> Si el problema persiste, refresque la página</p> “);
window.requestAnimationFrame( replacePreloadingMessage );
};
window.requestAnimationFrame( replacePreloadingMessage );
I would like to make the preloading screen an html file so I can have more control on what it looks like. Do you have an idea on how I could achieve this? I tried moddifying the code above to make it take an html argument, but that is not working.
Thank you!
Mercedes.