Finally answering myself....
So introducing again the problem:
- There are a lot of embedded binary images and it takes a lot of time to decode all of them
- While the JavaScript code is running (and decoding), nothing is refreshed on the screen. You have to wait until it is all done
The solution (you can call it a workaround):
- Delaying the script from time to time, letting the HTML be updated gradually at these delays, using the JavaScript function
setTimeout()
.
This way I can start browsing my HTML document at the first ~10sec, while the pictures are loaded gradually