Clyde
Clyde

Reputation: 1502

How can I ensure YSlow run automatically when firefox is started?

It seems a dumb question: I just have to set extensions.yslow.autorun to true, then everything is supposed to work perfectly. But it's not.

When I run the bash script:

URLS=(http://www.google.com http://www.yahoo.com)
for link in "${URLS[@]}";
do
    firefox -P YSlow -no-remote $link &
    echo $link
    PID=$!
    sleep 20
    kill $PID
done

YSlow doesn't run unless I manually click the YSlow button.

Well, how can I ensure that YSlow does run everytime firefox is started? Anybody have an idea?


Why I want to do this: I want to monitor several URLs' performance. And a report needs to be written every week, so it would be nice to automate this task.

I did it according to this post: http://tech.groups.yahoo.com/group/exceptional-performance/message/822

It's frustrating that it doesn't work out when it's supposed to do.

EDIT:

Someone having experience with showslow might help me out. Thank you.

Upvotes: 1

Views: 1471

Answers (4)

Echolet
Echolet

Reputation: 11

You note that

But when I restart firefox, the process repeats. So I'm not able to automate.

Is the preference extensions.yslow.autorun being saved to your YSlow profile or the default profile? Start up the browser with -P YSlow and check the value of this preference in about:config.

Upvotes: 1

Hugeidea
Hugeidea

Reputation: 71

Here is my solution to make yslow autorun when the page once loaded:

First, you might have firebug installed on your firefox, and have your firebug "On for All Web Pages", and you can check the snapshot below (Sorry for the inconvenience, because I cannot upload the image because of my low reputation):

enter image description here

Second, you should turn autorun 'on' for yslow.

In a word, you also have to have your Firebug on all pages and autoron on for Yslow.

I am using Firefox v15.0, Yslow: 3.1.4, Firebug: 1.10.2

Upvotes: 0

codeandcloud
codeandcloud

Reputation: 55248

Enabling YSlow Autorun

Upvotes: 0

Yochai Timmer
Yochai Timmer

Reputation: 49261

Tools -> Add ons -> Yslow -> Options -> "Automatically run yslow when page finishes loading"

Upvotes: 1

Related Questions