Quasimondo / QuasimondoJS

A collection of more or less useful Javascript utils and snippets
110 stars 23 forks source link

ZorroSVG: Randomly does not display in Chrome/Mac #9

Open geoffyuen opened 8 years ago

geoffyuen commented 8 years ago

Chrome Version 47.0.2526.80 (64-bit), El Capitan 10.11.1

I'm working on a site that uses many of these svgs (>20). I find that initially they display ok but during development of the site and after refreshing the browser many many times they begin to just not display. No console or network errors. Even after doing a empty cache and hard reload does not fix it. Quitting Chrome and opening again works. The issue does not affect non-Zorrosvgs (eg. Sketch) or svgs used as a background image. I've not had the issue appear in Firefox or Safari.

geoffyuen commented 8 years ago

Finally figured this out: Seems that Chrome has display issues with xattr on these files even though it should not. When downloading the svgs (also from Chrome) there's metadata being added (eg. the url that the file is being downloaded from). You can batch remove all xattr from the terminal: xattr -rc <your dir or file>

geoffyuen commented 8 years ago

Welp it turns out was wrong. I still have this issue...

Quasimondo commented 8 years ago

Thanks for reporting this. Though I don't know what I can do about it, it seems more like a Chrome issue to me. If you have any ideas how to go about fixing this I'm all ears.