Matthew Horne
Forum Replies Created
-
Forum: Plugins
In reply to: [Social Media with defered Javascript] Customization options?Thank you.
The plugin will be updated soon, I am working on it as we speak.
When you say on the home page, do you mean on each post, or just in general?
I’m sorry for the delayed response, I will be updating this plugin as soon as I have some time, new options and and overhaul of the code will take place.
Forum: Plugins
In reply to: [Social Media with defered Javascript] Customization options?Hi, I will be updating this plugin as soon as I get some free time.
Thanks for the input, it’s always good to get some feedback about options.
Forum: Plugins
In reply to: [W3 Total Cache] [Plugin: W3 Total Cache] FCGI deprecated functions php5Just an update, after removing the $ from minify.php and cdn.php the errors are gone.
Forum: Plugins
In reply to: [Facebook] Where is all of this facebook code coming from? (SLOW SITE)function java_to_bottom() {
if (is_single(array())) { // Change the name to match the name(s) of the pages using the form ?>
<script>(function(d, s) {
var js, fjs = d.getElementsByTagName(s)[0], load = function(url, id) {
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.src = url; js.id = id;
fjs.parentNode.insertBefore(js, fjs);
};
load(‘//static.ak.fbcdn.net/rsrc.php/v2/yo/r/ssI5dhaSfA6.js’, ‘fbjs1’);
load(‘//static.ak.fbcdn.net/rsrc.php/v2/yd/r/0EzHlWYG2R-.js’, ‘fbjs2’);
load(‘//static.ak.fbcdn.net/rsrc.php/v2/yO/r/nOspxDYdyk_.js’, ‘fbjs3’);
load(‘//static.ak.fbcdn.net/rsrc.php/v2/yX/r/AhktXCJ4AD1.js’, ‘fbjs4’);
load(‘//static.ak.fbcdn.net/rsrc.php/v2/y7/r/bWt6G76Xdum.js’, ‘fbjs5’);
load(‘//static.ak.fbcdn.net/rsrc.php/v2/yi/r/gkANllSOhvG.js’, ‘fbjs6’);
load(‘https://s-static.ak.facebook.com/connect/xd_arbiter.php?version=9’, ‘fbjs7’);
load(‘//w.sharethis.com/share4x/js/st.318bce8aee8cf5a4e4ca2924c68269a7.js’, ‘shrthis’);
}(document, ‘script’));</script><?php } }
add_action(‘wp_footer’, ‘java_to_bottom’);im not gonna guarantee this will work, but that is how it would be done, then you need to prevent the other scripts loading in the head.
but to make it clearer for me, can you turn off the minify on w3, it makes it hard to see your source code.
Forum: Plugins
In reply to: [Facebook] Where is all of this facebook code coming from? (SLOW SITE)facebook i believe but i may be wrong uses the same peiece of js.
So try this script found here
Look near the bottom where it says for generic themes. The last peice of coding, remove the other social media links if you only intent to use facebook. Add it to your functions.php and that will load the facebook jsk.
Let me know if it helps.
Forum: Fixing WordPress
In reply to: Please Help, WordPress Loads Very Slowbtw, I like your site, I used to build custom computers.
Forum: Fixing WordPress
In reply to: Please Help, WordPress Loads Very SlowYou need to optimize your site, especially those images.
The site in terms of size, is huge. 3.27mb.
Also apply correct caching
Enable Gzip Compression also, should shed a little weight off the page too.
Forum: Fixing WordPress
In reply to: slow loadingSeems to be loading quickly for me, although you could improve by optimizing your images.
Use Gtmetix to determine which images.
Forum: Plugins
In reply to: [Facebook] Where is all of this facebook code coming from? (SLOW SITE)My plugin might not be 100% right to some, but it works and does what I wanted it too, which was simply add share buttons below posts and defer the javascript. Im sure there is something that could be refined in the eyes of others, there usually is.
For the reccomendation bar
https://developers.facebook.com/docs/reference/plugins/recommendationsbar/
Use that, implement manually, place the java to the bottom. and the div id in the footer also. I havn’t tested it yet, but from reading the info on that page, it says its the pop up recommendation box, so should work.
As the other features of facebook all seem to use the same script, you should only need to implement the javascript once, and place it in footer.php or if your theme has somewhere to place java in the footer via the options panel, then do that.
Then for facebook like, simply add the div where ever you want other social features to appear such as the like box, ect in a widget.
Hope this helps
Forum: Plugins
In reply to: [Facebook] Where is all of this facebook code coming from? (SLOW SITE)Your sites loading issues are primarily js related.
858.6KiB of JavaScript is parsed during initial page load.
Which in my experience is like loading another website or two in some cases in javascript alone.
Page load time: 10.40s
Total page size: 1.62MB
Total number of requests: 183Not being funny, but you could seriously do with a tune up.
<link rel=’stylesheet’ id=’tentblogger-rss-reminder-css’ href=’https://noahsdad.com/wp-content/plugins/tentblogger-rss-reminder/css/style.css?ver=3.4.1′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’fb-css’ href=’https://noahsdad.com/wp-content/plugins/facebook/style/style.css?ver=1.0′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’bootstrap-css’ href=’https://cdn.noahsdad.com/wp-content/themes/standard/css/lib/bootstrap.css?ver=3.4.1′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’bootstrap-responsive-css’ href=’https://cdn.noahsdad.com/wp-content/themes/standard/css/lib/bootstrap-responsive.css?ver=3.4.1′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’standard-css’ href=’https://cdn.noahsdad.com/wp-content/themes/eightbit-standard-child-theme-kit-23729a7/style.css?ver=3.4.1′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’standard-videopress-css’ href=’https://cdn.noahsdad.com/wp-content/themes/eightbit-standard-child-theme-kit-23729a7/css/theme.videopress.css?ver=3.4.1′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’standard-activity-tabs-css’ href=’https://cdn.noahsdad.com/wp-content/themes/standard/lib/activity/css/widget.css?ver=3.4.1′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’gcse-widget-css’ href=’https://cdn.noahsdad.com/wp-content/themes/standard/lib/google-custom-search/css/widget.css?ver=3.4.1′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’standard-ad-300×250-widget-css’ href=’https://cdn.noahsdad.com/wp-content/themes/standard/lib/ad-300×250/css/widget.css?ver=3.4.1′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’standard-ad-125×125-widget-css’ href=’https://cdn.noahsdad.com/wp-content/themes/standard/lib/ad-125×125/css/widget.css?ver=3.4.1′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’standard-ad-468×60-css’ href=’https://cdn.noahsdad.com/wp-content/themes/standard/lib/ad-468×60/css/widget.css?ver=3.4.1′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’standard-personal-image-widget-css’ href=’https://cdn.noahsdad.com/wp-content/themes/standard/lib/personal-image/css/widget.css?ver=3.4.1′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’standard-influence-css’ href=’https://cdn.noahsdad.com/wp-content/themes/standard/lib/influence/css/widget.css?ver=3.4.1′ type=’text/css’ media=’all’ />Those stylesheets could be combined and compressed.
Should move you google analytics and put it down near the bottom.
All you facebook scripts should be put right at the bottom.
For example the facebook like box.
https://developers.facebook.com/docs/reference/plugins/like-box/When you create it you get two parts to it.
first like this:
<div id=”fb-root”></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = “//connect.facebook.net/en_GB/all.js#xfbml=1&appId=your app id”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>second like this :
<div class=”fb-like-box” data-href=”https://www.facebook.com/platform” data-width=”292″ data-show-faces=”true” data-stream=”true” data-header=”true”></div>
Put the first script which is js, right at the bottom, in your footer.php above the closing </body> tag.
Then place the second part where ever you want it to display. I.e in a widget.
Facebook is causing your site to load slowly
blocking of page rendering.https://static.ak.fbcdn.net/rsrc.php/v2/yI/r/UtF7rMWT5EN.js (570.6KiB)
https://static.ak.fbcdn.net/rsrc.php/v2/yu/r/Cs62Mw2ydAh.js (96.0KiB)
https://static.ak.fbcdn.net/rsrc.php/v2/yH/r/8U6R6ANV56e.js (44.5KiB)
https://static.ak.fbcdn.net/rsrc.php/v2/yX/r/AhktXCJ4AD1.js (41.9KiB)
https://static.ak.fbcdn.net/rsrc.php/v2/yI/r/HyTVfOLb4v3.js (38.0KiB)
https://static.ak.fbcdn.net/rsrc.php/v2/yr/r/xH0QJQfsOa2.js (35.0KiB)
https://s-static.ak.facebook.com/connect/xd_arbiter.php?version=9 (20.8KiB of inline JavaScript)
https://static.ak.fbcdn.net/rsrc.php/v2/yF/r/A3_4Itx-5zc.js (4.7KiB)So I would drop that plugin and manually add it.
Need help and I will be more than willing.
I do have a plugin for loading share button on posts, with defered js.
https://diywpblog.com/social-media-plugin-for-wordpress-with-defered-javascript/Hope this helps
Forum: Plugins
In reply to: [Facebook] Where is all of this facebook code coming from? (SLOW SITE)Facebook made that plugin right? I would of thought they would of used somethign like this to load the js
<script>(function(d, s) {
var js, fjs = d.getElementsByTagName(s)[0], load = function(url, id) {
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.src = url; js.id = id;
fjs.parentNode.insertBefore(js, fjs);
};
load(‘//connect.facebook.net/en_US/all.js#xfbml=1’, ‘fbjssdk’);
load(‘https://apis.google.com/js/plusone.js’, ‘gplus1js’);
load(‘//platform.twitter.com/widgets.js’, ‘tweetjs’);
load(‘//widgets.digg.com/buttons.js’, ‘digjs’);
}(document, ‘script’));</script>But as always, they decide to bombard you with stupid ammounts of js. It would be better to implement the features you require yourself and that way you have more control over where these scripts load and can implement such a script like the one above.
Forum: Fixing WordPress
In reply to: WordPress admin running extremly slow!If you still have problems after that link the site and ill take a look.
Forum: Fixing WordPress
In reply to: WordPress admin running extremly slow!Sometimes updating wordpress can cause some problems, so you could also try this.
Deactivate all plugins
Rename your wp-content file, by adding 1 on the end, Back up you database
https://diywordpressblog.com/backing-up-wordpress-database/Download the database to your computer with just the basic export options ticked, no need to tick any others. Just ensure its SQL.
then uninstall wordpress
Reinstall wordpress and re-upload the database.
If you need help with uploading the database let me know.
Then after all that is complete, optimize your database.
https://diywordpressblog.com/how-to-optimize-phpmyadmin/
You will only loose info if you delete wp-content and the database, these are the key parts to your site.