Categories

ep.preload()

Categories: Utilities

ep.preload( file, priority )

Plugin: ep.preload

Description: Preload a given file to avoid later loading

  • ep.preload( file, priority )

    version added: 6.11.0

    file   url for file to preload

    priority   priority for file

The ep.preload() method adds a file to the preload stack of the preloader. After document ready and a little timeout the preloader starts loading files. The priority defines which files are loaded first. Files with lower priority are loaded earlier. The file can be relative to the base url or absolute.

  • Add a file to the preloader

    Code:
    ep.preload('ep/test.html',100);
    ep.preload('http://shop.de/WebRoot/StoreTypes/6.11.0/Store/GUI/ep/test3.html',1000);