Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: For @font-face calculation, call on window.load instead of using setTimeOut? #10

Closed
yuvilio opened this issue Feb 3, 2014 · 2 comments

Comments

@yuvilio
Copy link

yuvilio commented Feb 3, 2014

Instead of delaying with setTimeout when using @font-face to get a correct calculation, I am calling equalHeights window.load rather than document.ready, as per this SO answer. Seems to be ok so far. Not sure why it works but may be better than a ms loading guess?

@mattbanks
Copy link
Owner

I've seen and heard of some cross-browser inconsistencies on exactly when $(window).load() gets fired. There are some caveats on the jQuery API page for the load event that are written for images, but apply to any assets that get downloaded, such as fonts.

I'm open to using it (working on a v2 branch with responsive support built in), but I'll need to do some testing.

@mattbanks
Copy link
Owner

Added to readme in develop branch, will get merged to master in the near future once responsive tweaks are done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants