简体   繁体   中英

How do I disable Google Fonts on mobile browsers?

I'm loading a Google Font in my head tag:

<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic" type="text/css" />

I want to disable this on mobile browsers to improve performance on slow Internet connections. What's the best way to do that?

May be this can help you ,you can separate it by adding media attribute

http://community.sitepoint.com/t/best-way-to-call-a-mobile-only-stylesheet/41310/3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM