Giter Site home page Giter Site logo

Comments (7)

nmn avatar nmn commented on August 18, 2024

Safari has long had bugs with appcache. In my case, I have not been able to get Safari to load ANY external resources when offline. In fact I have considered just using local storage to cache all external resources and making it work with some in-line javascript in the HTML file.

from svg4everybody.

bitinn avatar bitinn commented on August 18, 2024

@Naman34 you might want to check out sites like http://appcache.offline.technology/ external CSS and JS certainly works in my case.

from svg4everybody.

jonathantneal avatar jonathantneal commented on August 18, 2024

How might the library handle this for you?

from svg4everybody.

bitinn avatar bitinn commented on August 18, 2024

@jonathantneal I haven't been checking it for a while. Maybe iOS 8+ has fixed it. But my method is to check !navigator.onLine and webkit UA, then do the same thing you would do with IE.

from svg4everybody.

nmn avatar nmn commented on August 18, 2024

This appcache bug has indeed been fixed since.

from svg4everybody.

bitinn avatar bitinn commented on August 18, 2024

I am ok to close this then.

@jonathantneal do you think it's a good idea to expose this module as a function and make the matching regex replaceable? That way anyone with specific need to polyfill a browser can do so themselves. Since I believe the technique used in this polyfill works on any browser that support svg fragment identifier.

from svg4everybody.

jonathantneal avatar jonathantneal commented on August 18, 2024

I’ve added the option:

svg4everybody({
    shim: true, // force shimming of SVG
    shimExternalContent: true // force shimming of SVG External Content
});

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.