Custom loading page with progress bar?

257 views
Skip to first unread message

Keith Johnston

unread,
Feb 13, 2015, 4:57:58 PM2/13/15
to emscripte...@googlegroups.com
I'd like to split up my assets into small chunks and show a progress bar as they download instead of just the spinning bar. Has anyone done this already or is there a how-to on creating a custom loading page? I've been unable to find one so far.

Keith

Alon Zakai

unread,
Feb 13, 2015, 9:19:54 PM2/13/15
to emscripte...@googlegroups.com
You can define Module.monitorRunDependencies, it will be called back with the number of current "run dependencies" left (each assert file is a dependency, etc.).  See the default html for an example (src/shell.html).

- Alon


On Fri, Feb 13, 2015 at 1:57 PM, Keith Johnston <kei...@gmail.com> wrote:
I'd like to split up my assets into small chunks and show a progress bar as they download instead of just the spinning bar. Has anyone done this already or is there a how-to on creating a custom loading page? I've been unable to find one so far.

Keith

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Keith Johnston

unread,
Feb 14, 2015, 3:38:16 AM2/14/15
to emscripte...@googlegroups.com
Looks like this will work great. Thanks!


On Friday, February 13, 2015 at 6:19:54 PM UTC-8, Alon Zakai wrote:
You can define Module.monitorRunDependencies, it will be called back with the number of current "run dependencies" left (each assert file is a dependency, etc.).  See the default html for an example (src/shell.html).

- Alon

On Fri, Feb 13, 2015 at 1:57 PM, Keith Johnston <kei...@gmail.com> wrote:
I'd like to split up my assets into small chunks and show a progress bar as they download instead of just the spinning bar. Has anyone done this already or is there a how-to on creating a custom loading page? I've been unable to find one so far.

Keith

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages