WordPress企业级应用
CMS与电商商业建站技巧

Google及常用资源库、字体的国内源

对于wordpress内调用的 ajax.googleapis.com里的各种资源,国内CDN或资源库有以下网站提供,以加快网站加载速度,防止网站卡死:

  1.  https://cdn.baomitu.com/  前端静态资源库,首个支持 HTTP/2 的 CDN 服务。共收录了 3421 个开源项目
  2. https://www.bootcdn.cn/  稳定、快速、免费的前端开源项目 CDN 加速服务,共收录了 3409 个前端开源项目。
  3. https://css.loli.net/ 常用前端公共库 CDN 服务:前端 CDNJS 库及 Google Fonts、Ajax 和 Gravatar 国内加速服务
  4. lug.ustc.edu.cn 教育网CDN:LUG@USTC Google Fonts 加速服务
  5. https://www.jsdelivr.com/ 国外源,访问速度也很快。适于需要国内、国外都访问的网站。

字体库:

  1. https://cdn.baomitu.com/index/fonts 谷歌字体库
  2. https://fonts.loli.net/ 谷歌国内字体库
  3. https://www.youziku.com/ 有字库。各种正版中文字体

在WordPress目录中涉及google字体的大致文件有:

包含有 fonts.google.com 的内容,需要将其屏蔽:

/themes/onetype/inc/customizer/fonts.php
/themes/onetype/languages/onetype.pot

WordPress程序中相关代码:

  1. wp-includes\script-loader.php 中有各种调用的资源库。特别是很多引用了 ajax.googleapis.com 的文件。替换能够防止网页卡死。替换下面代码中引用 googleapi 的地方,示例如下:
	// WordPress no longer uses or bundles Prototype or script.aculo.us. These are now pulled from an external source.
	$scripts->add( 'prototype', 'https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js', array(), '1.7.1');
	$scripts->add( 'scriptaculous-root', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js', array('prototype'), '1.9.0');
	$scripts->add( 'scriptaculous-builder', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/builder.js', array('scriptaculous-root'), '1.9.0');
	$scripts->add( 'scriptaculous-dragdrop', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/dragdrop.js', array('scriptaculous-builder', 'scriptaculous-effects'), '1.9.0');
	$scripts->add( 'scriptaculous-effects', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/effects.js', array('scriptaculous-root'), '1.9.0');
	$scripts->add( 'scriptaculous-slider', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/slider.js', array('scriptaculous-effects'), '1.9.0');
	$scripts->add( 'scriptaculous-sound', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/sound.js', array( 'scriptaculous-root' ), '1.9.0' );
	$scripts->add( 'scriptaculous-controls', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/controls.js', array('scriptaculous-root'), '1.9.0');
	$scripts->add( 'scriptaculous', false, array('scriptaculous-dragdrop', 'scriptaculous-slider', 'scriptaculous-controls') );

替换过的内容:

	// WordPress no longer uses or bundles Prototype or script.aculo.us. These are now pulled from an external source.
	$scripts->add( 'prototype', 'https://lib.baomitu.com/prototype/1.7.1.0/prototype.js', array(), '1.7.1');
	$scripts->add( 'scriptaculous-root', 'https://lib.baomitu.com/scriptaculous/1.9.0/scriptaculous.js', array('prototype'), '1.9.0');
	$scripts->add( 'scriptaculous-builder', 'https://lib.baomitu.com/scriptaculous/1.9.0/builder.js', array('scriptaculous-root'), '1.9.0');
	$scripts->add( 'scriptaculous-dragdrop', 'https://lib.baomitu.com/scriptaculous/1.9.0/dragdrop.js', array('scriptaculous-builder', 'scriptaculous-effects'), '1.9.0');
	$scripts->add( 'scriptaculous-effects', 'https://lib.baomitu.com/scriptaculous/1.9.0/effects.js', array('scriptaculous-root'), '1.9.0');
	$scripts->add( 'scriptaculous-slider', 'https://lib.baomitu.com/scriptaculous/1.9.0/slider.js', array('scriptaculous-effects'), '1.9.0');
	$scripts->add( 'scriptaculous-sound', 'https://lib.baomitu.com/scriptaculous/1.9.0/sound.js', array( 'scriptaculous-root' ), '1.9.0' );
	$scripts->add( 'scriptaculous-controls', 'https://lib.baomitu.com/scriptaculous/1.9.0/controls.js', array('scriptaculous-root'), '1.9.0');
	$scripts->add( 'scriptaculous', false, array('scriptaculous-dragdrop', 'scriptaculous-slider', 'scriptaculous-controls') );

包含有 googleapis.com 的具体常见目录有:
./plugins/ocean-elementor-widgets/includes/plugin.php
./plugins/thirstyaffiliates-pro/Helpers/Plugin_Constants.php
./plugins/iconpress-lite/lib/Base.php
/plugins/snapshot/lib/Snapshot/Model/Destination/google-drive/index.php
./plugins/snapshot/lib/WPMUDEV/Dashboard/wpmudev-dash-notification.php
./plugins/snapshot/assets/shared-ui/plugin-ui.php
./plugins/types/vendor/otgs/icons/icons-overview.html
./plugins/download-now-for-woocommerce/assets/css/somdn-settings-style.css
./plugins/ti-woocommerce-wishlist/includes/wizard.class.php
./plugins/ti-woocommerce-wishlist/admin/tinvwl.class.php
./plugins/editus/public/includes/assets.php
./plugins/blogtemplates/blogtemplatesfiles/externals/wpmudev-dash-notification.php
./plugins/dokan-lite/includes/class-assets.php
./plugins/dokan-lite/assets/font/flaticon.html
./plugins/wpbf-premium/assets/kirki-webfont-link.php
./plugins/featured-image-generator/admin/js/featured-image-generator-admin.js
./plugins/anti-splog/includes/dash-notice/wpmudev-dash-notification.php
./plugins/yith-woocommerce-wishlist/plugin-fw/lib/yit-assets.php
./plugins/wpmudev-updates/css/maps/dashboard-widget.css.min.map
./plugins/wpmudev-updates/css/dashboard-widget.min.css
./plugins/wpmudev-updates/template/popup-wordpress-changelog.php
./plugins/wpmudev-updates/shared-ui/plugin-ui.php
./plugins/wp-views/embedded/inc/wpv.class.php
./plugins/pt-content-views-pro/includes/hooks.php
./plugins/pt-content-views-pro/admin/content-views-admin.php
./plugins/ultra-admin/css40/ultra-admin.css
./plugins/ultra-admin/framework/core/inc/fields/typography/field_typography.php
./plugins/ultra-admin/framework/core/core/enqueue.php
./plugins/wpdiscuz/forms/wpdFormAttr/Login/SocialLogin.php
./plugins/wp-shortcode-pro/includes/class-wp-shortcode-scripts.php
./plugins/wp-shortcode-pro/includes/admin/class-wp-shortcode-admin.php
./plugins/miniorange-otp-verification/objects/Template.php
./plugins/wp-defender/dash-notice/wpmudev-dash-notification.php
./plugins/wp-defender/app/module/advanced-tools/component/auth-api.php
./plugins/wp-defender/app/module/ip-lockout/view/locked.php
./plugins/wp-defender/shared-ui/plugin-ui.php
./plugins/wp-defender/vendor/hammer/vendor/wixel/gump/gump.class.php
./plugins/wp-hummingbird/core/pro/externals/dash-notice/wpmudev-dash-notification.php
./plugins/wp-hummingbird/admin/views/advanced/general-meta-box.php
./plugins/wp-hummingbird/admin/assets/css/app.min.css
./plugins/wp-hummingbird/admin/assets/css/wphb-app.min.css
./plugins/wp-hummingbird/languages/wphb-default.pot
./plugins/domain-mapping/classes/Domainmap/Module/Setup.php
./plugins/easy-custom-auto-excerpt/ajax.php
./plugins/easy-custom-auto-excerpt/easy-custom-auto-excerpt.php
./plugins/gravityforms/form_detail.php
./plugins/my-wp-mega-menu/my-wp-mega-menu.php
./plugins/brizy/public/editor-build/editor/js/editor.js
./plugins/clearfy/includes/classes/class.configurate-google-performance.php
./plugins/clearfy/libs/factory/forms/controls/google-font.php
./plugins/custom-content-shortcode/includes/optional/load.php
./plugins/custom-content-shortcode/includes/optional/lib/code-edit/assets/codeflask.css
./plugins/styles-and-layouts-for-gravity-forms/js/live-preview/live-preview-changes.js
./plugins/styles-and-layouts-for-gravity-forms/display/class-styles.php
./plugins/elementor/includes/editor.php
./plugins/elementor/includes/frontend.php
./plugins/elementor/assets/js/editor.js
./plugins/elementor/assets/js/editor.min.js
./plugins/yuzo-related-post/assets/ilenframework/core.js
./plugins/yuzo-related-post/assets/ilenframework/assets/css/theme-fresh.css
./plugins/yuzo-related-post/assets/ilenframework/assets/lib/utils.php
./plugins/yuzo-related-post/assets/ilenframework/core.php
./plugins/wp-review-pro/includes/shortcodes/class-wp-review-google-place-reviews-shortcode.php
./plugins/wp-review-pro/admin/admin.php
./plugins/wp-review-pro/box-templates/tabbed-layout.php
./plugins/wp-review-pro/box-templates/dash.php
./plugins/wp-review-pro/box-templates/gravity.php
./plugins/wp-review-pro/box-templates/edge.php
./plugins/wp-review-pro/box-templates/enterprise.php
./plugins/wp-review-pro/box-templates/shell.php
./plugins/wp-review-pro/box-templates/gamer.php
./plugins/wp-review-pro/box-templates/blue.php
./plugins/wp-review-pro/box-templates/xiaomi.php
./plugins/wp-review-pro/box-templates/fizzy.php
./plugins/wp-review-pro/box-templates/darkside.php
./plugins/wp-review-pro/box-templates/tabbed-layout2.php
./plugins/wp-review-pro/box-templates/zine.php
./plugins/wp-review-pro/box-templates/default.php
./plugins/wp-review-pro/box-templates/aqua.php
./plugins/wp-review-pro/box-templates/facebook.php
./plugins/wp-review-pro/box-templates/amazon.php
./plugins/bb-ultimate-addon/modules/google-map/google-map.php
./plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-google-map.php
./plugins/seo-by-rank-math/includes/class-helper.php
./plugins/seo-by-rank-math/includes/modules/search-console/class-client.php
./plugins/seo-by-rank-math/includes/modules/search-console/class-search-console.php
./plugins/seo-by-rank-math/includes/modules/search-console/class-errors.php
./plugins/autoptimize/classes/autoptimizeExtra.php
./plugins/page-views-count/admin/includes/fonts_face.php
./plugins/page-views-count/admin/assets/js/a3rev-typography-preview.js
./plugins/pods/ui/styles/src/helpers/_typography.scss
./plugins/jetpack/_inc/build/carousel/jetpack-carousel.min.js
./plugins/jetpack/modules/comment-likes.php
./plugins/jetpack/modules/carousel/jetpack-carousel.js
./plugins/jetpack/modules/minileven/theme/pub/minileven/functions.php
./plugins/jetpack/modules/widgets/contact-info.php
./plugins/ultimate-elementor/classes/class-uael-core-plugin.php
./plugins/ultimate-elementor/assets/min-js/platform.min.js
./plugins/ocean-portfolio/includes/customizer/class-customizer-settings.php
./plugins/facetwp/includes/facets/proximity.php
./plugins/redux-framework/ReduxCore/inc/fields/typography/field_typography.json
./plugins/redux-framework/ReduxCore/inc/fields/typography/field_typography.php
./plugins/redux-framework/ReduxCore/core/enqueue.php
./plugins/redux-framework/ReduxCore/framework.php
./plugins/gp-premium/typography/functions/functions.php
./plugins/gravityperks/admin/manage_perks.php
./plugins/genesis-palette-pro/lib/classes/admin/class-design.php
./plugins/conductor-slider/includes/class-conductor-slider.php
./plugins/ocean-footer-callout/ocean-footer-callout.php
./plugins/types-access/vendor/toolset/toolset-common/visual-editor/res/js/codemirror/mode/vb/index.html
./plugins/wptouch-pro/core/class-wptouch-pro.php
./plugins/wptouch-pro/themes/foundation/modules/google-fonts/google-fonts.php
./plugins/architect-premium/application/shared/architect/php/arc-functions.php

./plugins/snapshot/lib/WPMUDEV/Dashboard/wpmudev-dash-notification.php
./plugins/snapshot/assets/shared-ui/plugin-ui.php
./plugins/types/vendor/otgs/icons/icons-overview.html
./plugins/download-now-for-woocommerce/assets/css/somdn-settings-style.css
./plugins/ti-woocommerce-wishlist/includes/wizard.class.php
./plugins/ti-woocommerce-wishlist/admin/tinvwl.class.php
./plugins/editus/public/includes/assets.php
./plugins/blogtemplates/blogtemplatesfiles/externals/wpmudev-dash-notification.php
./plugins/dokan-lite/includes/class-assets.php
./plugins/dokan-lite/assets/font/flaticon.html
./plugins/wpbf-premium/assets/kirki-webfont-link.php
./plugins/featured-image-generator/admin/js/featured-image-generator-admin.js
./plugins/anti-splog/includes/dash-notice/wpmudev-dash-notification.php
./plugins/yith-woocommerce-wishlist/plugin-fw/lib/yit-assets.php
./plugins/wpmudev-updates/css/maps/dashboard-widget.css.min.map
./plugins/wpmudev-updates/css/dashboard-widget.min.css
./plugins/wpmudev-updates/template/popup-wordpress-changelog.php
./plugins/wpmudev-updates/shared-ui/plugin-ui.php
./plugins/wp-views/embedded/inc/wpv.class.php
./plugins/pt-content-views-pro/includes/hooks.php
./plugins/pt-content-views-pro/admin/content-views-admin.php
./plugins/ultra-admin/css40/ultra-admin.css
./plugins/ultra-admin/framework/core/inc/fields/typography/field_typography.php
./plugins/ultra-admin/framework/core/core/enqueue.php
./plugins/wpdiscuz/forms/wpdFormAttr/Login/SocialLogin.php
./plugins/wp-shortcode-pro/includes/class-wp-shortcode-scripts.php
./plugins/wp-shortcode-pro/includes/admin/class-wp-shortcode-admin.php
./plugins/miniorange-otp-verification/objects/Template.php
./plugins/wp-defender/dash-notice/wpmudev-dash-notification.php
./plugins/wp-defender/app/module/advanced-tools/component/auth-api.php
./plugins/wp-defender/app/module/ip-lockout/view/locked.php
./plugins/wp-defender/shared-ui/plugin-ui.php
./plugins/wp-defender/vendor/hammer/vendor/wixel/gump/gump.class.php
./plugins/wp-hummingbird/core/pro/externals/dash-notice/wpmudev-dash-notification.php
./plugins/wp-hummingbird/admin/views/advanced/general-meta-box.php
./plugins/wp-hummingbird/admin/assets/css/app.min.css
./plugins/wp-hummingbird/admin/assets/css/wphb-app.min.css
./plugins/wp-hummingbird/languages/wphb-default.pot
./plugins/domain-mapping/classes/Domainmap/Module/Setup.php
./plugins/easy-custom-auto-excerpt/ajax.php
./plugins/easy-custom-auto-excerpt/easy-custom-auto-excerpt.php
./plugins/gravityforms/form_detail.php
./plugins/my-wp-mega-menu/my-wp-mega-menu.php
./plugins/brizy/public/editor-build/editor/js/editor.js
./plugins/clearfy/includes/classes/class.configurate-google-performance.php
./plugins/clearfy/libs/factory/forms/controls/google-font.php
./plugins/custom-content-shortcode/includes/optional/load.php
./plugins/custom-content-shortcode/includes/optional/lib/code-edit/assets/codeflask.css
./plugins/styles-and-layouts-for-gravity-forms/js/live-preview/live-preview-changes.js
./plugins/styles-and-layouts-for-gravity-forms/display/class-styles.php
./plugins/elementor/includes/editor.php
./plugins/elementor/includes/frontend.php
./plugins/elementor/assets/js/editor.js
./plugins/elementor/assets/js/editor.min.js
./plugins/yuzo-related-post/assets/ilenframework/core.js
./plugins/yuzo-related-post/assets/ilenframework/assets/css/theme-fresh.css
./plugins/yuzo-related-post/assets/ilenframework/assets/lib/utils.php
./plugins/yuzo-related-post/assets/ilenframework/core.php
./plugins/wp-review-pro/includes/shortcodes/class-wp-review-google-place-reviews-shortcode.php
./plugins/wp-review-pro/admin/admin.php
./plugins/wp-review-pro/box-templates/tabbed-layout.php
./plugins/wp-review-pro/box-templates/dash.php
./plugins/wp-review-pro/box-templates/gravity.php
./plugins/wp-review-pro/box-templates/edge.php
./plugins/wp-review-pro/box-templates/enterprise.php
./plugins/wp-review-pro/box-templates/shell.php
./plugins/wp-review-pro/box-templates/gamer.php
./plugins/wp-review-pro/box-templates/blue.php
./plugins/wp-review-pro/box-templates/xiaomi.php
./plugins/wp-review-pro/box-templates/fizzy.php
./plugins/wp-review-pro/box-templates/darkside.php
./plugins/wp-review-pro/box-templates/tabbed-layout2.php
./plugins/wp-review-pro/box-templates/zine.php
./plugins/wp-review-pro/box-templates/default.php
./plugins/wp-review-pro/box-templates/aqua.php
./plugins/wp-review-pro/box-templates/facebook.php
./plugins/wp-review-pro/box-templates/amazon.php
./plugins/bb-ultimate-addon/modules/google-map/google-map.php
./plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-google-map.php
./plugins/seo-by-rank-math/includes/class-helper.php
./plugins/seo-by-rank-math/includes/modules/search-console/class-client.php
./plugins/seo-by-rank-math/includes/modules/search-console/class-search-console.php
./plugins/seo-by-rank-math/includes/modules/search-console/class-errors.php
./plugins/autoptimize/classes/autoptimizeExtra.php
./plugins/page-views-count/admin/includes/fonts_face.php
./plugins/page-views-count/admin/assets/js/a3rev-typography-preview.js
./plugins/pods/ui/styles/src/helpers/_typography.scss
./plugins/jetpack/_inc/build/carousel/jetpack-carousel.min.js
./plugins/jetpack/modules/comment-likes.php
./plugins/jetpack/modules/carousel/jetpack-carousel.js
./plugins/jetpack/modules/minileven/theme/pub/minileven/functions.php
./plugins/jetpack/modules/widgets/contact-info.php
./plugins/ultimate-elementor/classes/class-uael-core-plugin.php
./plugins/ultimate-elementor/assets/min-js/platform.min.js
./plugins/ocean-portfolio/includes/customizer/class-customizer-settings.php
./plugins/facetwp/includes/facets/proximity.php
./plugins/redux-framework/ReduxCore/inc/fields/typography/field_typography.json
./plugins/redux-framework/ReduxCore/inc/fields/typography/field_typography.php
./plugins/redux-framework/ReduxCore/core/enqueue.php
./plugins/redux-framework/ReduxCore/framework.php
./plugins/gp-premium/typography/functions/functions.php
./plugins/gravityperks/admin/manage_perks.php
./plugins/genesis-palette-pro/lib/classes/admin/class-design.php
./plugins/conductor-slider/includes/class-conductor-slider.php
./plugins/ocean-footer-callout/ocean-footer-callout.php
./plugins/types-access/vendor/toolset/toolset-common/visual-editor/res/js/codemirror/mode/vb/index.html
./plugins/wptouch-pro/core/class-wptouch-pro.php
./plugins/wptouch-pro/themes/foundation/modules/google-fonts/google-fonts.php
./plugins/architect-premium/application/shared/architect/php/arc-functions.php
./plugins/architect-premium/application/public/js/jQuery-Collapse/README.md
./plugins/wordpress-seo/admin/google_search_console/class-gsc-service.php
./plugins/wordpress-seo/admin/google_search_console/class-gsc-config.php
./plugins/wordpress-seo/vendor/yoast/api-libs/google/Google_Client.php
./plugins/wordpress-seo/vendor/yoast/api-libs/google/auth/Google_OAuth2.php
./plugins/wordpress-seo/vendor/yoast/api-libs/google/config.php
./plugins/insert-php/libs/factory/forms/controls/google-font.php
./plugins/insert-php/libs/factory/bootstrap/assets/js-min/control.fonts.min.js
./plugins/a3-lazy-load/admin/includes/fonts_face.php
./plugins/a3-lazy-load/admin/assets/js/a3rev-typography-preview.js
./plugins/bb-plugin/classes/class-fl-builder-fonts.php
./plugins/bb-plugin/includes/ui-js-config.php
./plugins/dokan-pro/includes/lib/Hybrid/Providers/Google.php
./plugins/dokan-pro/includes/lib/Hybrid/thirdparty/OpenID/LightOpenID.php
./plugins/dokan-pro/includes/modules/vendor-verification/vendor-verification.php
./plugins/pageviews/templates/auth.php
./wptouch-data/5/extensions/amp/amp.php
./wptouch-data/5/extensions/amp/wp-amp/includes/class-amp-post-template.php
./themes/twentysixteen/functions.php
./themes/shopy/functions.php
./themes/shopy/admin/extensions/fonts.php
./themes/eleven40-pro/functions.php
./themes/storefront/inc/class-storefront.php
./themes/twentyfifteen/functions.php
./themes/generatepress/inc/typography.php
./themes/page-builder-framework/assets/kirki-webfont-link.php
./themes/page-builder-framework/assets/kirki/modules/webfont-loader/vendor-typekit/webfontloader.js
./themes/page-builder-framework/assets/kirki/modules/webfont-loader/vendor-typekit/src/modules/google/fontapiurlbuilder.js
./themes/transmit/functions.php

./themes/ultimatum/wonderfoundry/admin/helpers/class.css.saver.php
./themes/ultimatum/wonderfoundry/admin/helpers/class.options.php
./themes/ultimatum/wonderfoundry/admin/interfaces/wonder-fonts/index.php
./themes/ultimatum/wonderfoundry/admin/interfaces/wonder-templates/index.php
./themes/ultimatum/wonderfoundry/admin/interfaces/wonder-layout/index.php
./themes/storepro/style.min.css
./themes/storepro/style.css
./themes/padma/library/visual-editor/scripts-src/util.fonts-browser.js
./themes/padma/library/visual-editor/scripts-src/deps/ckeditor/plugins/imageuploader/check_permission.php
./themes/padma/library/visual-editor/scripts-src/deps/ckeditor/plugins/imageuploader/imgbrowser.php
./themes/padma/library/visual-editor/scripts-src/deps/ckeditor/samples/old/jquery.html
./themes/padma/library/visual-editor/scripts-src/modules/design/mode-design.js
./themes/padma/library/fonts/web-fonts-loader.php
./themes/onetype/functions.php
./themes/oceanwp/inc/customizer/settings/typography.php
./themes/oceanwp/inc/customizer/controls/typography/webfonts.php
./themes/metro/theme-class.php
./themes/metro/themify/js/main.min.js
./themes/metro/themify/js/main.js
./themes/metro/themify/customizer/js/themify.customize-control.min.js
./themes/metro/themify/customizer/js/themify.customize-control.js
./themes/metro/themify/customizer/js/themify.customize-preview.js
./themes/metro/themify/customizer/js/themify.customize-preview.min.js
./themes/metro/themify/themify-widgets.php
./themes/metro/themify/google-fonts/functions.php
./themes/metro/themify/themify-builder/classes/class-themify-builder.php
./themes/metro/themify/themify-builder/js/themify-builder-app.min.js
./themes/metro/themify/themify-builder/js/themify-youtube-bg.min.js
./themes/metro/themify/themify-builder/js/themify-youtube-bg.js
./themes/metro/themify/themify-builder/js/themify-builder-app.js
./themes/metro/themify/themify-builder/templates/template-map.php
./themes/metro/themify/themify-builder/templates/builder-layout-part-output.php
./themes/metro/themify/themify-builder/modules/module-map.php
./themes/focus-pro/functions.php
./themes/layerswp/functions.php
./themes/layerswp/core/helpers/custom-fonts.php
./themes/layerswp/core/widgets/modules/contact.php
./themes/layerswp/core/widgets/modules/base.php
./themes/astra/inc/customizer/class-astra-fonts.php
./themes/mts_writer/options/google-typography/google-typography.php

我是用 grep -rl "googleapis.com" . 命令搜索的。请根据具体情况自行调节。

参考文档:

  1. 自动替换文字串的方法请参见:Linux/Mac下批量替换文件中的字符串
  2. https://httpd.apache.org/docs/2.4/rewrite/remapping.html
  3. http://www.itsheng.net/php/replace-google-fonts-plugin-improvement/

更新:

2018.12.20 添加 https://css.loli.net/ 库、教育网 lug.ustc.edu.cn 库。

赞(0)
未经允许不得转载:为知网 » Google及常用资源库、字体的国内源
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址