HTML5 splash image bug in Safari (DEF-3061) (SOLVED)

In the template for HTML5 a splash image do not hidden after game loaded.
In Safari it’s look like:



Safari version:
2018-01-03_16-05-07

This looks like an issue we added a ticket for right before christmas (DEF-3061).

We think it is related to a security update for Safari to 11.0.2. Does it look like OK in another web browser, chrome for example?

it’s ok in chrome (Version 63.0.3239.84 (Official Build) (64-bit)) and in firefox (57.0.3 (64-bit))

1 Like

I found old issue

2 Likes

I think the simplest way to fix this issue is removing of background image when game loaded.
I don’t want to fix js every time after build, and like a hot fix I made next hack in html5 template:

setTimeout(function(){Module.canvas.style.background = '#000000';},2000);

But would be great if you will add something like this in dmloader.js to postRun or _preloadAndCallMain function.

My solution :slight_smile:

if html5 then
	html5.run("Module.canvas.style.background = '#000'")
end
2 Likes

Cool, thanks!

But I still hope for a fix in dmloader.js.

Solved in Defold 1.2.125

1 Like