• Hey guys
    I have a few questions, had a look around the forum (and other places too), have found some answers but didn’t work.. So I decided to sum up in one thread hoping that I’ll finally get this fixed and perhaps help future users.
    Any answer for the questions will be highly appreciated. My website is https://www.zunkabitz.com
    Let’s go:

    1) How do I decrease the space between banners on my sidebar? They are like 30px apart. And can I apply to only some of the banners or does it affect the whole sidebar?

    2) Facebook asked for “Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.” My header.php reads:

    </head>
    <?php flush(); ?>
    <body id ="blog" <?php body_class('main'); ?>>

    So the opening is right after the ?>> and right before <header class="main-header"/> right?

    3) Analysing on Google Adsense I have to make the following improvements:
    – Improve server response time: how to?
    – Optimize the order of styles and scripts: I’m already using plugin “Performance Optimization: Order Styles and Javascript”, is not enough?
    – Optimize images: Losslessly compressing https://www.zunkabitz.com/…/logaoaa.png could save 6.8KiB (48% reduction)// Losslessly compressing? how to?
    – Serve scaled images: https://www.zunkabitz.com/…/duck1-82×60.jpg is resized in HTML or CSS from 82×60 to 75×55. Serving a scaled image could save 533B (17% reduction // how to?
    – Minify HTML: already using plugin “WP Minify”, is not enough?
    – Put CSS in the document head: 1 style block(s) in the body should be moved to the document head // how to?
    – Leverage browser caching: for png, jpg. However I have this on my .htaccess, why is not working?

    #Expire Header
    <FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf)$">
    ExpiresDefault "access plus 2 hours"
    </FilesMatch>

    – Defer parsing of JavaScript: https://www.zunkabitz.com/wp-content/plugins/wp-minify/min/?f=wp-includes/js/comment-reply.min.js,wp-content/themes/playbook/js/modernizr.min.js,wp-content/themes/playbook/js/customscript.js,wp-content/plugins/jetpack/modules/wpgroho.js&m=1372820460 // how to?
    – Remove query strings from static resources: Resources with a “?” in the URL are not cached by some proxy caching servers. Remove the query string and encode the parameters into the URL for the following resources: https://www.zunkabitz.com/wp-content/plugins/wp-minify/min/?f=wp-content/themes/playbook/style.css,wp-content/plugins/jetpack/modules/widgets/widgets.css,wp-content/plugins/floating-social-media-icon/style.css&m=1372871528 and https://www.zunkabitz.com/wp-content/plugins/wp-minify/min/?f=wp-includes/js/comment-reply.min.js,wp-content/themes/playbook/js/modernizr.min.js,wp-content/themes/playbook/js/customscript.js,wp-content/plugins/jetpack/modules/wpgroho.js&m=1372820460// how to?
    – Load Twitter asynchronous: I have on my footer.php, right before /body the following, why is not working? <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

    4) And with GTMetrix I get the following errors
    –On Page Speed:
    – Defer parsing of JavaScript: “411.9KiB of JavaScript is parsed during initial page load. Defer parsing JavaScript to reduce blocking of page rendering.” // how to?
    – Specify image dimensions: images missing width and/or height. It includes my logo and some 125×125 ads. How can I do that, specially for the adds, they give an script code and I put inside an TEXT widget, do I have to add an image width and height?
    – Leverage browser caching: mostly png, jpg and gif (and two .js). I have this on my .htaccess:

    #Expire Header
    FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf)$">
    ExpiresDefault "access plus 2 hours"
    /FilesMatch>

    isn’t enough?
    – Optimize images: how can I do that BEFORE uploading them? Because GTMetrix gives an optimized version so I can delete the original and upload the new one, but I’d have to do that always.
    –On YSLow:
    – Add Expires headers: There are 53 static components without a far-future expiration date. Again, the code on my .htaccess should cover that, right?
    – Make fewer HTTP requests: This page has 28 external Javascript scripts. Try combining them into one. This page has 3 external stylesheets. Try combining them into one. // How? I’m already using plugin “Performance Optimization: Order Styles and Javascript”, should cover this, right?
    – Reduce DNS lookups: The components are split over more than 4 domains. // what?
    – Use cookie-free domains: There are 10 components that are not cookie-free. // What?
    – Configure entity tags (ETags): I have "FileETag None" added to my .htaccess, is this not enough?

    So, so sorry for this many questions, I really hope I can get to solve as many as possible.
    Thank you so much!!

  • The topic ‘Issues with’ is closed to new replies.