Using Object to load svg has issue in chrome they get reloaded when hide/show

630 views
Skip to first unread message

tawfiq injass

unread,
Apr 29, 2016, 12:33:17 PM4/29/16
to Chromium-discuss
Please run this Plunker on chrome

see how svg using object tag behave.
first they get loaded one by one, also when hide/show their parent div they get reloaded again
compare the behavior between using img tag and object tag.

PhistucK

unread,
Apr 29, 2016, 1:56:38 PM4/29/16
to tawf...@gmail.com, Chromium-discuss
I believe this is by design. When you load an SVG in <object>, it sorts of like loading an iFrame. When you hide and show an iFrame, it reloads.

Why do you use <object> anyway?


PhistucK

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.

tawfiq injass

unread,
May 5, 2016, 6:34:48 AM5/5/16
to Chromium-discuss, tawf...@gmail.com
Hello,

I am using object because I need interactive SVG's.

I don't want to use in line SVG's because in my project I have too many it will be difficult to manage ID's and its not practical to have that much svg code in HTML.

this issue exist only in google chrome in other browsers its not like that.

you can visit this link to see the cons and pros of each method to display SVG's

PhistucK

unread,
May 5, 2016, 7:10:56 AM5/5/16
to tawfiq injass, Chromium-discuss
This seems like a nonstandard way of doing what you want.
Anyway, you can search crbug.com for an existing issue and star it. If you cannot find one, file a new issue using the "New issue" link on the same page.
Please, do not add a "+1" or "Me too" or "Confirmed" (or similar) comment. It just wastes the time of Chrome engineers and sends unnecessary e-mails to all of the people who starred the issue.

You can reply with a link to the found or created issue and might get triaged (and fixed) faster.

Thank you.


PhistucK
Reply all
Reply to author
Forward
0 new messages