reloadSource method
void
reloadSource()
Attempts to reload a Picture#source image. This can be useful if the content on a server has changed, or was missing before. If a new image is loaded, this Picture may remeasure and/or redraw.
Because of browsers caching assets, you may additionally need to force a re-fetch of the Picture's source URL
with a fetch
call such as:
fetch(thisPicture.source, { cache: 'reload', mode: 'no-cors' });
This should normally be called within a transaction. @since 2.1
Implementation
void reloadSource() {
_i4.callMethod(
this,
'reloadSource',
[],
);
}