Page 1 of 1

Pre-Initialize htmlVideoLoader()

PostPosted: Fri Dec 25, 2020 2:24 pm
by Clifton
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!