How to make clones tag object with svg image data in one page. Without many get methods to the server. Sample of target page
<!DOCTYPE html>
...
<object id="tg0" data="graph.svg" type="image/svg+xml" some_my_value="234"></object>
<object id="tg1" data="graph.svg" type="image/svg+xml" some_my_value="123"></object>
...
This sample get graph.svg with many get requests to graph.svg. First request shows result 200 all following shows result 304, but i need without the following once.
I found attr declare, but next code doesn't work wo attr data in #tg1.
<object declare id="tg0" data="graph.svg" type="image/svg+xml"></object>
<object id="tg1" type="image/svg+xml">
<param valuetype="object" value="#tg0">
</object>
With data attr, tg1 sends following get requests.
How can i do this in html, wo js. Is it possible to receive data from current page by relative uri ~like xpath.
graph.svg is self render image. It's can be worked in shadow root(it's not variant now) in div. If can be one way - to use JS, how i can put XMLHttpRequesst result into the document in tag object?
Construction with elements like document.querySelector("..."). contentWindow/contentDocument/document/window/innerHTML = ... doesn't whork.
If js - need solution in pure js wo jquery and other frameworks. Firefox/Chrome.