Hi I’m attempted to add asynch loading to my functions php but, It was blocked by Boldgrid.
Here is the Warning I received when adding.
Warning: Cannot modify header information – headers already sent by (output started at /home/earth/public_html/wp-content/themes/boldgrid-hydra/functions.php:15) in /home/earth/public_html/wp-includes/pluggable.php on line 1174
How can fix this?
Here’s the rest from Google’s Page speed Optimizer. It’s important for me to have everyhing optimized for Moblile
Any tips on optimizing the CSS as well?
I do have GZIP and Cashe enabled and this has fixed some errors but, I need help with the rest.
Your page has 2 blocking script resources and 16 blocking CSS resources. This causes a delay in rendering your page.
None of the above-the-fold content on your page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.
Optimize CSS Delivery of the following:
Thank you for your question about making a custom change to your functions.php file. It’s unclear what may have caused this issue, but we’ll certainly take a look. What exactly did you change or add to the file? As far as CSS optimization, I would recommend that you minify your CSS file if you haven’t already.
Gratefully, Casey B.