Top Banner
Hacking YSlow @stoyanstefanov http://phpied.com SF WebPerf Meetup Aug 2, 2012
27

YSlow hacking

Jan 22, 2018

Download

Technology

Stoyan Stefanov
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: YSlow hacking

Hacking YSlow

@stoyanstefanov

http://phpied.com

SF WebPerf Meetup Aug 2, 2012

Page 2: YSlow hacking

Configuring

Customizing

Extending

Page 3: YSlow hacking

Messing

Fiddling

Hacking

Page 4: YSlow hacking

Tool -> Platform

Page 5: YSlow hacking

Scores

Page 6: YSlow hacking

Strike of a genius?

Lucky strike?

Marketing plot?

Page 7: YSlow hacking

How come I get an...

Page 8: YSlow hacking
Page 9: YSlow hacking

Coding horror:

"Yahoo's problems

are not your

problems"

Page 10: YSlow hacking

Disagree with scores?

Your own CDN?

Expires not important?

Page 11: YSlow hacking

Customize the scores

Page 12: YSlow hacking

Customize the rules

Page 13: YSlow hacking

New rules

Page 14: YSlow hacking

Remove the owner

bottleneck

Page 15: YSlow hacking

Lint all the things!

Page 16: YSlow hacking

Contribute to the

project

Page 17: YSlow hacking

Written in JS

barrier for entry =

!existent

Page 18: YSlow hacking

Architecture

1. Peel

2. Lint

3. Show

Page 19: YSlow hacking

Architecture

1. Peel

2. Lint

3. Show

Page 20: YSlow hacking

Running your own

hackable copy

(bookmarklet)

Page 21: YSlow hacking

1. Git

2. Build

3. Deploy

4. Install client

Page 22: YSlow hacking

1. Git (click)

2. Build (make)

3. Deploy (scp)

4. Install client

(drag)

Page 23: YSlow hacking

Hack:

1. customize

2. extend

Page 24: YSlow hacking

Hack:

1. customize YSLOW.registerRuleset()

2. extend

Page 25: YSlow hacking

Hack:

1. customize YSLOW.registerRuleset()

2. extend YSLOW.registerRule()

Page 26: YSlow hacking

Spread:

* send a patch

* BYO

Page 27: YSlow hacking

Thanks!