-
AuthorPosts
-
December 18, 2018 at 3:41 am #1046714
Hi guys,
I just launched another client website with enfold but when I check with Pingdom there is a lot of css that loads for elements that are not used on that page.
58 CSS requests conform 60% of the page requests. https://tools.pingdom.com/#59efbb9c19800000
CSS merging and compression is enabled, Same for javascript and not loading jquery migrate.
I also checked a few of my other sites and the same thing is happening. It used to be that images were the biggest number of requests.
What am I doing wrong?
Thank you!!
Havi
https://conversionsciences.com/wp-content/themes/e…
2.2 KB
https://conversionsciences.com/wp-content/themes/e…
5.5 KB
https://conversionsciences.com/wp-content/themes/e…
15.5 KB
https://conversionsciences.com/wp-content/themes/e…
4.4 KB
https://conversionsciences.com/wp-content/themes/e…
1.6 KB
https://conversionsciences.com/wp-content/themes/e…
1.1 KB
https://conversionsciences.com/wp-content/themes/e…
377.0 B
https://conversionsciences.com/wp-content/themes/e…
638.0 B
https://conversionsciences.com/wp-content/themes/e…
2.4 KB
https://conversionsciences.com/wp-content/themes/e…
1.2 KB
https://conversionsciences.com/wp-content/themes/e…
377.0 B
https://conversionsciences.com/wp-content/themes/e…
646.0 B
https://conversionsciences.com/wp-content/themes/e…
679.0 B
https://conversionsciences.com/wp-content/themes/e…
928.0 B
https://conversionsciences.com/wp-content/themes/e…
416.0 B
https://conversionsciences.com/wp-content/themes/e…
960.0 B
https://conversionsciences.com/wp-content/themes/e…
721.0 B
https://conversionsciences.com/wp-content/themes/e…
834.0 B
https://conversionsciences.com/wp-content/themes/e…
754.0 B
https://conversionsciences.com/wp-content/themes/e…
1.1 KB
https://conversionsciences.com/wp-content/themes/e…
1.4 KB
https://conversionsciences.com/wp-content/themes/e…
1.0 KB
https://conversionsciences.com/wp-content/themes/e…
2.4 KB
https://conversionsciences.com/wp-content/themes/e…
1.4 KB
https://conversionsciences.com/wp-content/themes/e…
1.3 KB
https://conversionsciences.com/wp-content/themes/e…
461.0 B
https://conversionsciences.com/wp-content/themes/e…
1.1 KB
https://conversionsciences.com/wp-content/themes/e…
3.5 KB
https://conversionsciences.com/wp-content/themes/e…
617.0 B
https://conversionsciences.com/wp-content/themes/e…
863.0 B
https://conversionsciences.com/wp-content/themes/e…
3.0 KB
https://conversionsciences.com/wp-content/themes/e…
1.3 KB
https://conversionsciences.com/wp-content/themes/e…
1.0 KB
https://conversionsciences.com/wp-content/themes/e…
1.1 KB
https://conversionsciences.com/wp-content/themes/e…
461.0 B
https://conversionsciences.com/wp-content/themes/e…
385.0 B
https://conversionsciences.com/wp-content/themes/e…
1.6 KB
https://conversionsciences.com/wp-content/themes/e…
1.4 KB
https://conversionsciences.com/wp-content/themes/e…
1.3 KB
https://conversionsciences.com/wp-content/themes/e…
610.0 B
https://conversionsciences.com/wp-content/plugins/…
933.0 B
https://conversionsciences.com/wp-content/themes/e…
6.6 KB
https://conversionsciences.com/wp-content/themes/e…
1.8 KB
https://conversionsciences.com/wp-content/themes/e…
1.2 KB
https://conversionsciences.com/wp-content/themes/e…
5.1 KB
https://conversionsciences.com/wp-includes/js/medi…
2.6 KB
https://conversionsciences.com/wp-includes/js/medi…
1.2 KB
https://conversionsciences.com/wp-content/themes/e…
377.0 B
https://conversionsciences.com/wp-content/themes/e…
3.8 KB
https://conversionsciences.com/wp-content/themes/e…December 20, 2018 at 1:21 am #1047520Hey havi,
Try checking out this post: https://kriesi.at/archives/scoring-100-100-in-google-pagespeed-insights-gtmetrix-pagespeed-and-yslow
Hope it helps.Best regards,
NikkoDecember 20, 2018 at 2:38 am #1047553Hi Nikko,
Appreciated but that doesn’t solve my problem.
Even though CSS and JS performance from Enfold are enabled and jQuery migrate and emoji are disabled and Load ONLY active elements is selected elements not used by the page are being loaded and definitely not being compressed.
Cleared the server Cache and they still load.
How can I stop them from loading if they are not called?
Thank you!
Havi
December 20, 2018 at 2:05 pm #1047715Hi Havi,
When you have css merging enabled those files will be merged into /wp-content/uploads/dynamic_avia/avia-merged-style file and so all those requests will not be made. You don’t seem to have it enabled at the moment. Please enable merging and test again.
Best regards,
VictoriaJanuary 7, 2019 at 5:31 pm #1050966Hi Victoria,
That’s exactly what puzzles me. CSS merging it’s enabled!!
Any other ideas?
Havi
January 9, 2019 at 11:35 am #1051732Hi,
Can we access the dashboard? Are you using other cache or minification plugin? Please post the login details in the private field.
Best regards,
IsmaelJanuary 11, 2019 at 12:35 am #1052537Hi Ismael!
Sorry for my delay in responding but I wanted to make sure I could clear it out on my own.
I have been updated to the latest version of WordPress and Enfold and now it seems to be working as it should. A single compressed CSS file and no jQuery migrate load… :)
I really don’t know what could have caused it… but it’s fixed… Quick question… I am trying to add a dns-prefetch and for some reason the child’s php file does not like it but I added the lines to the header.php (child theme) and I wanted to make sure I did it correctly. This is the URL: https://staging-conversionsciencesdev.kinsta.cloud/
This is what I tried on the functions php file:
/*DNS Prefetch
*/
function havi_dns_prefetch() {
echo ‘<meta http-equiv=”x-dns-prefetch-control” content=”on”>
<link rel=”dns-prefetch” href=”//e2c472c159b54d01b70ef4647d44097a.pages.ubembed.com” />
<link rel=”dns-prefetch” href=”//e2c472c159b54d01b70ef4647d44097a.events.ubembed.com” />
}
add_action(‘wp_head’, ‘havi_dns_prefetch’, 0);(It did not like the last line)
And what I added then to the header.php:
<head>
<link rel=”dns-prefetch” href=”//e2c472c159b54d01b70ef4647d44097a.pages.ubembed.com”>
<link rel=”dns-prefetch” href=”//e2c472c159b54d01b70ef4647d44097a.events.ubembed.com”>
then the rest…Do I have to add: <meta http-equiv=”x-dns-prefetch-control” content=”on”> before the above?
Thank you!!!
Havi
January 13, 2019 at 11:43 pm #1053448Hi,
You didn’t echo out the link tags. It should be:
echo '<meta ... />'; echo ' <link ... />'; echo ' <link ... />';
Do you get any errors?
Best regards,
IsmaelJanuary 15, 2019 at 3:57 am #1053939Ah! That would be for the functions.php, right? I’ll test it tomorrow and let you know!!
Thank you!!
Havi -
AuthorPosts
- You must be logged in to reply to this topic.