Information Classification: External Restricted.
See https://www.chili-publish.com/security

Preloading resources

Preloader functionality

We added a method to our API to allow the precaching of some resources used by CHILI Publisher. 
By using this method, you can speed up your integration by preloading resources to the users browser cache.

When the DocumentGetHTMLPreloadUrl method is called, it returns an XML document containing a URL that can be loaded in an invisible iframe in the browser. 
This URL preloads javascript files and color profiles (if no additional info is provided). 
When a normal editor is loaded afterwards in the same browser window, it will use the preloaded resources from the browser cache.

The method can optionally accept workspace id, document id or view preference id and will then preload even more resources.

  • When a workspace id is provided to the method, then icon set, interface font and interface language will also be preloaded.
  • When a document id is provided, then the document fonts and assets will also be preloaded.
  • When a view preference id is provided, the display quality is honoured when document asset previews are preloaded.

 

Example: 

POST to the api:

 

<?xml version="1.0" encoding="utf-8"?>
  <soap12:Body>
    <DocumentGetHTMLPreloadURL xmlns="http://www.chili-publisher.com/">
      <apiKey>A valid apiKey here...</apiKey>
      <itemID>Document ID here...</itemID>
      <workSpaceID>Workspace ID here...</workSpaceID>
      <viewPrefsID>View preferences ID here...</viewPrefsID>
    </DocumentGetHTMLPreloadURL>
  </soap12:Body>
</soap12:Envelope>

All information on this page must be treated as External Restricted, or more strict. https://www.chili-publish.com/security