Skip to content
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.

Fail Lighthouse #86

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
6f67429
Add Lighthouse performance check
ataylorme Dec 6, 2017
b1292c3
Add huge content background image
ataylorme Dec 6, 2017
89816d7
Run Lighthouse on master
ataylorme Dec 6, 2017
9e37a99
Comment out pushing Lighthouse score back to GitHub
ataylorme Dec 6, 2017
39992a7
Remove empty else causing syntax error
ataylorme Dec 6, 2017
e521563
Compare the Lighthouse score in a pull request to the master branch
ataylorme Dec 6, 2017
2c812cf
Merge branch 'master' into content-bg
ataylorme Dec 6, 2017
2723cb3
Don't cache any pages
ataylorme Dec 6, 2017
f7ef065
Fix coding standards
ataylorme Dec 6, 2017
ea82914
Create initial dependencies.yml config (#89)
dependencies[bot] Dec 6, 2017
ad03d99
Merge branch 'master' into content-bg
ataylorme Dec 6, 2017
e601979
Run Lighthouse on master
ataylorme Dec 6, 2017
be6a7c5
Comment out pushing Lighthouse score back to GitHub
ataylorme Dec 6, 2017
83d664d
Remove empty else causing syntax error
ataylorme Dec 6, 2017
757f966
Compare the Lighthouse score in a pull request to the master branch
ataylorme Dec 6, 2017
b1e94d6
Don't cache any pages
ataylorme Dec 6, 2017
6628c45
Fix coding standards
ataylorme Dec 6, 2017
6944b92
Create initial dependencies.yml config (#89)
dependencies[bot] Dec 6, 2017
69a2b6d
Merge branch 'content-bg' of github.com:ataylorme/Advanced-WordPress-…
ataylorme Dec 11, 2017
f8ff05d
Use Lighthouse Docker image
ataylorme Dec 11, 2017
0843e98
Merge master
ataylorme Dec 11, 2017
4210c75
Add a 2 second wait to wp_head
ataylorme Dec 11, 2017
120be64
Merge branch 'master' into content-bg
ataylorme Aug 17, 2018
3b74677
Increase sleep from 2 to 5
ataylorme Aug 17, 2018
6b32fef
Double sleep
ataylorme Aug 17, 2018
adbd98b
Merge branch 'master' into content-bg
ataylorme Aug 17, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion web/wp-content/themes/twentyseventeen-child/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
!.babelrc
assets/
assets/*
node_modules/
!assets/images
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 25 additions & 1 deletion web/wp-content/themes/twentyseventeen-child/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,28 @@ function Enqueue_Scripts_styles()

}

add_action('wp_enqueue_scripts', __NAMESPACE__ . '\Enqueue_Scripts_styles');
add_action('wp_enqueue_scripts', __NAMESPACE__ . '\Enqueue_Scripts_styles');

/**
* Add no cache header
*
* @return void
*/
function Add_No_Cache_header()
{
header('Cache-Control: no-cache, must-revalidate, max-age=0');
}

add_action('send_headers', __NAMESPACE__ . '\Add_No_Cache_header');

/**
* Delay wp_head
*
* @return void
*/
function Delay_wphead()
{
sleep(10);
}

add_action('wp_head', __NAMESPACE__ . '\Delay_wphead');
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@
border-bottom: 1px solid darkgray;
}
}

#content {
background-image: url('../images/content-bg.jpg')
}