My CSS Won't Defer

Hi. I have worpress site and I use a form plugin. There is no direct organic link to my contact forms and they are all at the bottom of the page. The plugin uses a lot of css files that I want to defer loading. I found a defer script from here. So I added my file path and came up with this:

var giftofspeed = document.createElement('link');
giftofspeed.rel = 'stylesheet';
giftofspeed.href = ' ';
giftofspeed.type = 'text/css';
var godefer = document.getElementsByTagName('link')[0];
godefer.parentNode.insertBefore(giftofspeed, godefer);

Here is my site.

It doesn’t seem to work. Any ideas would be appreciated.

Looking at your site, I see that the browser console shows some errors that prevent the further execution of the code.

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