Slide 1

Slide 1 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 P E R F O R M A N C E D R I V E N F R O N T E N D D E V E LO P M E N T A N E E D F O R S P E E D A L L E N M O O R E | F R O N T- E N D E N G I N E E R

Slide 2

Slide 2 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015

Slide 3

Slide 3 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 YES, We’re Hiring!

Slide 4

Slide 4 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 H OW S O C I E T Y H AS S H A P E D T H E W E B

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 H OW A B R OW S E R LOA D S A W E B PAG E

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

New tab

Slide 10

Slide 10 text

New tab Browser downloads a HTML file

Slide 11

Slide 11 text

New tab Browser downloads a HTML file Parses through the HTML

Slide 12

Slide 12 text

New tab Browser downloads a HTML file Parses through the HTML Encounters something it needs to load (image, JS file, CSS file, etc.

Slide 13

Slide 13 text

New tab Browser downloads a HTML file Parses through the HTML Encounters something it needs to load (image, JS file, CSS file, etc. Loads external resource

Slide 14

Slide 14 text

New tab Browser downloads a HTML file Parses through the HTML Encounters something it needs to load (image, JS file, CSS file, etc. Loads external resource Parses external resource (if CSS or JS)

Slide 15

Slide 15 text

New tab Browser downloads a HTML file Parses through the HTML Encounters something it needs to load (image, JS file, CSS file, etc. Loads external resource Parses external resource (if CSS or JS) Continues to parse HTML until it encounters another resource that must be loaded

Slide 16

Slide 16 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 T H E C R I T I C A L R E N D E R I N G PAT H — A B OV E T H E F O L D

Slide 17

Slide 17 text

“the code and resources required to render the initial view of a web page”

Slide 18

Slide 18 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 H OW F R O N T E N D P E R F O R M A N C E A F F E C T S U S E R E N G AG E M E N T A N D E X P E R I E N C E

Slide 19

Slide 19 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 U N D E R S TA N D I N G U S E R F R U S T R AT I O N

Slide 20

Slide 20 text

“a feeling of anger or annoyance caused by being unable to do something”

Slide 21

Slide 21 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 P E R F O R M A N C E A N D AC C E S S I B I L I T Y

Slide 22

Slide 22 text

“Web accessibility refers to the inclusive practice of removing barriers that prevent interaction with, or access to websites, by people with disabilities. When sites are correctly designed, developed and edited, all users have equal access to information and functionality.”

Slide 23

Slide 23 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 C L I E N T S U C C E S S S TO RY

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

> 4 0 %

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 P E R F O R M A N C E D R I V E N F R O N T E N D D E V E LO P M E N T B E S T P R AC T I C E S

Slide 29

Slide 29 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 I F YO U D O N ’ T N E E D I T, D O N ’ T LOA D I T.

Slide 30

Slide 30 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 E X A M P L E if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); }

Slide 31

Slide 31 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 WA I T T I L L L AT E R

Slide 32

Slide 32 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 T H E B A R E N E C E S S I T I E S ( T H E I N I T I A L R E N D E R I N G )

Slide 33

Slide 33 text

“It’s great to be on the Cutting Edge, but it’s never ok to be on the Bleeding Edge of the Cutting Edge.”

Slide 34

Slide 34 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 LOA D C R P S T Y L E S I N L I N E , I N T H E H E A D E R , A N D A L L E L S E I N T H E F O OT E R

Slide 35

Slide 35 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 E X A M P L E .header { width: 100%; background-color: black; } .nav { width: 100%; height: auto; }

Slide 36

Slide 36 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 E X A M P L E (function() { function loadCSS(href){ var ss = window.document.createElement('link'), ref = window.document.getElementsByTagName('head')[0]; ss.rel = 'stylesheet'; ss.href = href; ss.media = 'only x'; ref.parentNode.insertBefore(ss, ref); setTimeout( function(){ ss.media = 'all'; },0); } loadCSS('style.min.css'); })();

Slide 37

Slide 37 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 E X A M P L E function theme_scripts_styles() { wp_enqueue_script( ‘theme-scripts', get_template_directory_uri() . ‘/assets/js/scripts.js’, array(), ‘1.0’, true ); } add_action( 'wp_enqueue_scripts', ‘theme_scripts_styles' );

Slide 38

Slide 38 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 E X A M P L E function async_theme_script( $tag, $handle, $src ) { if ( 'theme-scripts' !== $handle ) : return $tag; endif; return str_replace( '

Slide 39

Slide 39 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 TO O L S TO M E AS U R E F R O N T E N D P E R F O R M A N C E

Slide 40

Slide 40 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 B R OW S E R D E V TO O L S

Slide 41

Slide 41 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 T E S T O N A L L T H E T H I N G S

Slide 42

Slide 42 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 E X A M P L E - X I P. I O server_name local.dev *.local.dev ~^local\.\d+\.\d+\.\d+\.\d+\.xip\.io$;

Slide 43

Slide 43 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 E X A M P L E - B R OW S E R SY N C server_name local.dev *.local.dev ~^local\.\d+\.\d+\.\d+\.\d+\.xip\.io$;

Slide 44

Slide 44 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 O N L I N E TO O L S

Slide 45

Slide 45 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 O N L I N E TO O L S • Google Page Speed Insights - • WebPageTest.org • SiteSpeed.io

Slide 46

Slide 46 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015 Q U E S T I O N S ?

Slide 47

Slide 47 text

Allen Moore • @creativeallen • #wcphilly • allenmoore.me/wcphilly-2015