I am using the well known 'Open Sans' font family in my current project, and I'm facing the following problem.
I have buttons and other elements with width: auto
, so when loading the page these elements will have a width calculated by the browser until the 'Open Sans' font is actually loaded from Google Fonts, then their size is recalculated, creating an annoying effect.
Here is a demo: http://jsbin.com/IkifUhUL/1 (refresh the page multiple times to see it in action).
Is there a workaround for this problem without specifying a width for these elements?
Any tips appreciated!