Title: Optimize Theme
Last modified: September 5, 2022

---

# Optimize Theme

 *  Resolved [markk26](https://wordpress.org/support/users/markk26/)
 * (@markk26)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/optimize-theme/)
 * I have these codes
 * `<!--<link rel="preload" as="style" href="https://cdnjs.cloudflare.com/ajax/libs/
   datepicker/0.6.5/datepicker.css" type="text/css"/>-->`
 * `<link rel="preload" as="style" href="<?php bloginfo('template_url'); ?>/landing/
   css/style.css?v=1.0.159" type="text/css"/>`
 *     ```
       <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.13/jquery.mask.min.js" defer></script>
       <script src="https://cdnjs.cloudflare.com/ajax/libs/datepicker/0.6.5/datepicker.js" defer></script>
       <script src="https://cdnjs.cloudflare.com/ajax/libs/datepicker/0.6.5/i18n/datepicker.pt-BR.js" defer></script>
       <script src="<?php bloginfo('template_url'); ?>/static/js/segurospromo.js?v=1.6" defer></script>
       <script src="<?php bloginfo('template_url'); ?>/landing/js/script.js?v=1.9" defer></script>
       <script type='text/javascript'>
       //<![CDATA[ 
       function loadCSS(e, t, n) { "use strict"; var i = window.document.createElement("link"); var o = t || window.document.getElementsByTagName("script")[0]; i.rel = "stylesheet"; i.href = e; i.media = "only x"; o.parentNode.insertBefore(i, o); setTimeout(function () { i.media = n || "all" }) }loadCSS("https://use.fontawesome.com/releases/v5.6.0/css/all.css");
       //]]> 
       </script>
       ```
   
 * in my theme’s functions.php and when I go to measure the speed, Google Page Speed
   accuses the cdnjs.cloudflare scripts. com, use.fontawesome/releases/v5.6.0/webfonts/
   fa-brands-400.woff2 and use.fontawesome/releases/v5.6.0/webfonts/fa-solid-900.
   woff2 as responsible for slowing down my site!
    Is there any way I can improve
   this script, so that Gtemtrix and Google don’t rate it as bad, through the wp-
   optimize plugin?`
    -  This topic was modified 3 years, 8 months ago by [markk26](https://wordpress.org/support/users/markk26/).
    -  This topic was modified 3 years, 8 months ago by [markk26](https://wordpress.org/support/users/markk26/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Foptimize-theme%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/optimize-theme/#post-15981996)
 * [@markk26](https://wordpress.org/support/users/markk26/) As these are the urls
   generated by 3rd party site it cannot be optimized by WP-Optimize at the moment.

Viewing 1 replies (of 1 total)

The topic ‘Optimize Theme’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Harshad](https://wordpress.org/support/users/bornforphp/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/optimize-theme/#post-15981996)
 * Status: resolved