Upload
others
View
0
Download
0
Embed Size (px)
Citation preview
Speed Matters
Optimizing Your WordPress Site for Speed!
Will she leave?
You can’t drive fast if you have a flat tire.
https://developers.google.com/speed/pagespeed/insights/
Live Demo
Remove plugins you don’t need for more speed!
Lazy Load Imageshttps://wordpress.org/plugins/lazy-load/
Are featured images loading at the right size?https://wordpress.org/plugins/regenerate-thumbnails/
Are images in posts the right size?https://wordpress.org/plugins/replace-content-image-size/
Optimize Imageshttps://wordpress.org/plugins/wp-resized-image-quality/
FONTS
function prefix_fonts() {
// Source Sans Pro wp_enqueue_style( 'prefix_source_sans', '//fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,400italic', array(), null, 'screen' );
// Noto wp_enqueue_style( 'prefix_noto', '//fonts.googleapis.com/css?family=Noto+Serif:400,700,400italic', array(), null, 'screen' );
} add_action( 'wp_enqueue_scripts', 'prefix_fonts' );
function prefix_fonts() {
// Source Sans Pro + Noto wp_enqueue_style( 'prefix_fonts', '//fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,400italic|Noto+Serif:400,700,400italic', array(), null, 'screen' );
} add_action( 'wp_enqueue_scripts', 'prefix_fonts' );
Concat and Minify
Conditional Loading of
Scripts & Styles
if ( !is_singular() && !is_404() ) { wp_enqueue_script( 'masonry' ); }
if ( is_singular() || is_404() ) { wp_dequeue_script( 'masonry' ); }
Thanks!
More at:wptheming.com
Twitter:@devinsays