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 2 years, 6 months ago by .
- This topic was modified 2 years, 6 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Optimize Theme’ is closed to new replies.