Skip to content

Instantly share code, notes, and snippets.

@cup-of
cup-of / stagger-elements
Last active July 16, 2018 00:08
stagger animate elements
<!-- HTML -->
<button>click</button>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
@cup-of
cup-of / functions.php
Last active July 23, 2018 17:00
Increase pagespeed on custom wordpress themes by injecting minified css and js into the html. Then minify the html. Place in functions.php
/* Deregister jQuery and enqueue main scripts
--------------------------------------------------------------------------------------- */
function scripts() {
wp_deregister_script('jquery');
wp_deregister_script( 'wp-embed' );
}
add_action( 'wp_enqueue_scripts', 'scripts' );