Interface ClientFileLoader
- All Superinterfaces:
ClientService
,Serializable
The ClientFileLoader service allows loading additional JavaScript and CSS files at runtime.
- Since:
- 3.1
-
Method Summary
Modifier and TypeMethodDescriptionvoid
requireCss
(String url) Instructs the client to immediately load and include CSS file from the given URL.void
Instructs the client to immediately load and execute a JavaScript file from the given URL.
-
Method Details
-
requireJs
Instructs the client to immediately load and execute a JavaScript file from the given URL. If the file has already been loaded by the client, it won't be loaded again.Files can be registered with the
ResourceManager
.- Parameters:
url
- the URL from which to load the JavaScript file
-
requireCss
Instructs the client to immediately load and include CSS file from the given URL. If the file has already been loaded by the client, it won't be loaded again.Files can be registered with the
ResourceManager
.- Parameters:
url
- the URL from which to load the CSS file
-