Stop wordpress from requesting external jquery from googleapi

WordPress doesn’t use externally hosted jQuery. In fact, as far as I’m aware, WordPress core does not register any externally hosted scripts. WordPress bundles its own version of jQuery, and you can enqueue the bundled version by just enqueueing the handle jquery: wp_enqueue_script( ‘jquery’ ); Or by specifying ‘jquery’ as a dependency: wp_enqueue_script( ‘my-script’, ‘/path/to/my-script.js’, … Read more

Any idea why Google not caching my site? [closed]

I looked at the source code of the site and found this: <meta name=”robots” content=”noodp,noydir,noarchive,nosnippet”/> Apparently noarchive tells Google to not cache the page. Check out Google Webmaster Tools documentation/guidelines for “Meta tags” for more info on what each value does. PS: If you are unaware, nosnippet should also be removed as it “prevents a … Read more

Code syntax error, “userfullName undefined”

You are missing the ‘echo’ userfullName = <?php $current_user->display_name;?> should be var userfullName = “<?php echo $current_user->display_name;?>” AND notice that I put quotes around that too. BUT!!!! You should really look at using wp_localize_script for declaring javascript variables. Example: add_action(‘wp_enqueue_scripts’, ‘fobu_front_scripts’); function fobu_front_scripts() { global $blog_id; $params = array( ‘site_url’ => site_url(), ‘blog_id’ => $blog_id … Read more

Google Page Speed Insights – Optimize Images

First, don’t let Google Insights drive you to chase an ROI that might not be there. Maybe for 1M of image data improvement, it is worth looking into – but after awhile that tool will have you minifying 1K css files to save 100 bytes. Second, regarding images – don’t just blindly reduce (‘compress’…really a … Read more