What Changed
In v24.2, the approach used to store SVG and HTML templates in the Web Dashboard control changed. The dashboard control no longer appends HTML templates and SVG images to the page markup - in-memory storage is used instead.
The ResourceManager.embedBundledResources()
and ResourceManager.removeEmbeddedResources()
became obsolete and are not required. The method call causes the following warning in the browser console:
CodeThe ResourceManager.embedBundledResources() method is obsolete. Remove the method call from your application. For more information, refer to the following breaking change document ....
Reasons for Change
This change prevents possible re-rendering issues in applications with the Web Dashboard Control.
Impact on Existing Apps
This change affects your application if you used one of the following methods:
ResourceManager.embedBundledResources()
ResourceManager.removeEmbeddedResources()
How to Update Existing Apps
To update your application, remove the following lines:
CodeResourceManager.embedBundledResources()
ResourceManager.removeEmbeddedResources().
If you use the ResourceManager.registerIcon
method, make sure the following requirements are met:
- The icon consists of a single SVG element.
- The SVG element has an
id
attribute. If there is noid
attribute in the icon's definition, pass the icon's id as the second parameter to theregisterIcon
method.
How to Revert to Previous Behavior
You cannot revert to the previous behavior.