我的HTML网站将使用Open Sans字体,我想知道在保持网站速度快的同时最佳加载字体的方法是什么?
- Using google fonts in the html:
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600' rel='stylesheet' type='text/css'>
- Using google fonts in the CSS:
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,600);
Downloading the font from the serveur in the css:
@font-face { font-family: 'MyWebFont'; src: url('font/myfont.woff2') format('woff2'), url('font/myfont.woff') format('woff'); }
Something else?
谢谢!