Giter VIP home page Giter VIP logo

Comments (6)

sorccu avatar sorccu commented on July 30, 2024

An even more serious problem is probably the use of document.write(). While it would be possible to make cufon.js work without it, I don't really see the point. One possible use case may be loading cufon only for browsers that do not support @font-face, but you'd almost certainly experience a delay if you loaded cufon.js that way.

from cufon.

maranomynet avatar maranomynet commented on July 30, 2024

I've added the xmlns:v="urn:schemas-microsoft-com:vml namespace attribute and a strict doctype - and my dynamically loaded Cufon init script works beautifully in IE when I browse between pages - but the font replacement does not occur when I hit Ctrl-R or the Reload button.

It has me stumped at the moment. ...Arrr!

from cufon.

maranomynet avatar maranomynet commented on July 30, 2024

Update: It seems that three things are needed for sorry old MSIE 8 >:

  1. adding xmlns:v="urn:schemas-microsoft-com:vml namespace to the <head/>
  2. Strict <!DOCTYPE>
  3. Hard-coded <script> link to the Cufon script.

Bottom-line: lazy-loading cufon seems impossible in MSIE 8 >

from cufon.

mdumic avatar mdumic commented on July 30, 2024

This should be rechecked again since #232 introduced support for asynchronous (delayed) loading.

from cufon.

amatecha avatar amatecha commented on July 30, 2024

I'm not sure that the commit #232 fixes the issue. In IE9, I get an "unspecified error" here:

var ns = document.namespaces;

(line 967 in current latest version)

I assume this is a symptom of the same issue as above, but I could be missing something here as I'm no JS expert. I am using deferred loading on my site, basically using this guy's technique (his first example): http://stackoverflow.com/a/5853358

Let me know if you need more info to help debug this issue (or let me know if I'm missing something super obvious).

Oh, oddly enough, refreshing the page makes the error magically no longer occur, and the font-replacement proceeds as usual. :P

from cufon.

mdumic avatar mdumic commented on July 30, 2024

@amatecha I'd like to get to the bottom of this. Can you prepare a minimal test case, just one html file (and CSS/JS as needed) with everything in it and create a gist? You can use "Vegur" font and omit it from your file as it is part of this project already.

from cufon.

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.