0

We have to support an application in IE11 and i have enabled diffrential loading and include some polyfills but still in IE 11 I can see an error -

TypeError: Unable to get property 'ready' of undefined or null reference for document.fonts.ready.

Is there any polyfill I can include to fix this.

Error in IE11 in angular

rahul225
  • 1
  • 1

1 Answers1

0

Document.fonts is not supported in IE11. So document.fonts.ready won't work in IE11.

As a workaround, you can use FontFaceOnload. The demo works well in IE11. For more information, you can also refer to this answer.

Yu Zhou
  • 11,532
  • 1
  • 8
  • 22