Giter Site home page Giter Site logo

Comments (8)

ramsey avatar ramsey commented on July 19, 2024

I'm having the same problem with SVGs that internally contain <use> elements. In my case, IE11 finally gives a message saying that a script has become unresponsive, and I have to click the button to stop the script.

from svg4everybody.

itmustbe avatar itmustbe commented on July 19, 2024

I too am having this problem with SVGs that contain <use> elements. In IE 10 and IE 11 I get an error about an unresponsive script and the browser freezes up. It only happens when I include svg4everybody v2.0.0 ... if I switch back to v1.0.0 then everything works fine in IE10 and IE11, but there's no IE Edge support (so it seems) with v1.0.0 (I did not test v2.0.0 with Edge as I had such problems in IE10 and IE11).

from svg4everybody.

iainvdw avatar iainvdw commented on July 19, 2024

I can confirm this as well with svg's that internally use <use> elements. Removing the <use> element fixed this issue for me as this was unnecessary markup for the svg itself. This will probably not be the fix for all related issues, as some svg's would depend on the <use> element for proper display.

from svg4everybody.

thomasmattheussen avatar thomasmattheussen commented on July 19, 2024

I'm also experiencing this issue. Unfortunately, I can't remove the use elements in my case...

from svg4everybody.

gthomas3 avatar gthomas3 commented on July 19, 2024

I was having this exact issue and finally solved it. IE 11 would freeze, then display a 'script has become unresponsive' message.

I was rendering 6 svg's, of which 1 would never display after I stopped the script. I removed this svg from the page and everything ran smoothly.

After comparing that svg to the others, it included a clippath. I removed the clippath and it resolved the issue.

<clipPath id="SVGID_2_">
    <use xlink:href="#SVGID_1_"  overflow="visible"/>
</clipPath>

Not sure if this is the ultimate solution, but worked for me.

I'm using the legacy version, and instantiating it with no options: svg4everybody()

from svg4everybody.

asuh avatar asuh commented on July 19, 2024

I suffered the same issue but with IE10, IE11 and Edge.

Someone has already sent a pull request to fix this issue and it works for me!
#86

from svg4everybody.

code-mattclaffey avatar code-mattclaffey commented on July 19, 2024

#86 worked for me to.

from svg4everybody.

jonathantneal avatar jonathantneal commented on July 19, 2024

Glad #86 worked for everyone back in November. Closing this now.

from svg4everybody.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.