add timeout when loading fonts

There's some usages of `document.createElement('style')` in engine, I think it's good to make them use this method too ;).