Title: Unload webfont.js
Last modified: June 20, 2019

---

# Unload webfont.js

 *  Resolved [puregraphx](https://wordpress.org/support/users/puregraphx/)
 * (@puregraphx)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/unload-webfont-js/)
 * When optimizing the load time I locally host Google Fonts, however I noticed 
   in GTMetrix that MailOptin loads [https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js](https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js).
   Why is that, where can I disable that?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Collins Agbonghama](https://wordpress.org/support/users/collizo4sky/)
 * (@collizo4sky)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/unload-webfont-js/#post-11656749)
 * Add the code below to your theme’s functions.php file to remove the call to webfont.
   js
 *     ```
       function project_dequeue_mo_scripts()
       {
           wp_dequeue_script('mo-google-webfont');
           wp_deregister_script('mo-google-webfont');
       }
   
       add_action('wp_print_scripts', 'project_dequeue_mo_scripts');
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Unload webfont.js’ is closed to new replies.

 * ![](https://ps.w.org/mailoptin/assets/icon-256x256.png?rev=1699978)
 * [MailOptin - Popup, Optin Forms & Email Newsletters for Mailchimp, HubSpot, AWeber Etc.](https://wordpress.org/plugins/mailoptin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailoptin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailoptin/)
 * [Active Topics](https://wordpress.org/support/plugin/mailoptin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailoptin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailoptin/reviews/)

## Tags

 * [webfont.js](https://wordpress.org/support/topic-tag/webfont-js/)

 * 1 reply
 * 2 participants
 * Last reply from: [Collins Agbonghama](https://wordpress.org/support/users/collizo4sky/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/unload-webfont-js/#post-11656749)
 * Status: resolved