Making Fewer HTTP Requests & Other Issues

I’m in need of help support…So im currently using W3 Total Cache and haven’t minify any plugins or theme js’s or css files that belong to theme.co cause in your performance guide it says all your plugins and theme files have already been optimized right?

Now, this is where my problem is…I currently still have this many javascript files and css files below

So, what im asking is what can i add to this below?..as its not minifing java, only combining? can i add the cornerstone plugin and theme files? if its only combining files?

I tired to add files and clearing my cache and it does seem to bring the number down in terms of how many http requests i have…

BUT!

Now, im getting this error below on GTmetrics

I’m not sure how to fix these issues im having? ugh :frowning:

Will keep testing things and give you an update on if i fixed this, but if you know anything let me know and will make the changes myself

Update - So cornerstone & g-tags where the files giving me the error when adding them to be combined. I did manage to get my website speed to 2.5 seconds which still isn’t the best, but better then 8 seconds. haha

Never had this bad a website speed before, i’ve checked my hosting response time and its good. Think its the theme mostly cause the issues here…

Can’t get my website speed belore 2.5 seconds with free plugins and no CDN…

Other Issues - GTmetrics Waterfall

Not sure why these are showing up on my homepage scan at GTmetrics in the waterfall section

https://cdnjs.cloudflare.com/ajax/libs/URI.js/1.14.2/URI.js
https://cdnjs.cloudflare.com/ajax/libs/URI.js/1.14.2/punycode.min.js
https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.0/lodash.min.js
https://cdnjs.cloudflare.com/ajax/libs/most/0.15.0/most.min.js

Also im getting a 400 error inside the waterfall on gtmetrics here
https://gtmetrix.com/reports/insidemancaves.com/a6nmlEoC

Okay, when opening the error url i get this code, which from the looks of it was coming from the plugin pirate form? which is odd cause i deactivated this plugin and deleted it so not sure why is loading on my homepage?

/* global pf /
/
global jQuery */
(function($, pf){

$(document).ready(function() {
    onDocumentReady();
});

$(window).load(function() {
    onWindowLoad();
});

function onDocumentReady() {
    // fired when a form is changed from the inspector.
    if(pf.spam.gutenberg === 1){
        jQuery('body').delegate('.pirate-forms-maps-custom', 'addCustomSpam', function(){
            var i = 0;
            addCustomSpam(i++, jQuery(this));
        });
    }

    // for the front end.
    jQuery('.pirate-forms-maps-custom').each(function(i){
        addCustomSpam(i, jQuery(this));
    });
}

function onWindowLoad() {
    // fired when a saved form is loaded in gutenberg.
    if(pf.spam.gutenberg === 1){
        jQuery('.pirate-forms-maps-custom').each(function(i){
            addCustomSpam(i, jQuery(this));
        });
    }
}

function addCustomSpam(i, object){
    var $id = 'xobkcehc-' + i;
    object.empty().html(jQuery('<input id="' + $id + '" name="xobkcehc" type="' + 'xobkcehc'.split('').reverse().join('') + '" value="' + pf.spam.value + '"><label for="' + $id + '"><span>' + pf.spam.label + '</span></label>'));
}

Hi @Jord56,

Thanks for reaching out.

All files of the theme are optimized, but given that Wordpress is modular with many assets from different plugins and themes, it generates multiple requests. That’s the nature of Wordpress and it’s only normal.

Those optimization guide just require you to serve fewer files instead of many. Example, let’s say there are 4 javascript files in plugin one, 2 javascript files in plugin two, and 8 javascript files from plugin three. Then your GTMETRICS tools want you to only serve that 14 files in one file. BUT it’s not possible in Wordpress since it’s a composition of codes from many different authors. HENCE, the optimization plugin is made which I recommend contacting the author of your optimization plugin.

If it’s a theme issue then it should be a Wordpress issue as a whole too. That tool just assume your site is an HTML page with just static scripts.

And those 4 URLs are products of your optimization too, eg. CDN and even the ones in your screenshot. I recommend contacting a developer for this.

The 404 is a cache file too which is missing, and that as well, is coming from your optimization.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.