Pre-Initialize htmlVideoLoader()

Help for using specific functions

Pre-Initialize htmlVideoLoader()

Postby Clifton » Fri Dec 25, 2020 2:24 pm

The htmlVideoLoader() will load its js and css files when first called to load a video. This means there can be some delay as these resources are retrieved the first time. To speed up the process, you can load these resources on book load by calling one or both of these actions. Note that only ONE parameter is used in each of these actions.
  • tbfunction_htmlVideoLoader( "page" ); //Preloads the js/css files into the ToolBook page frame
  • (optional) Use this initialization action if you plan to load top-level videos.
    tbfunction_htmlVideoLoader( "sysbootstrap" ); //Preloads the js/css fles into the top-level window area
Have fun!
Clifton
Site Admin
 
Posts: 732
Joined: Tue Jan 14, 2014 1:04 am

Return to Function Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron