开发者

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

开发者 https://www.devze.com 2023-02-06 19:37 出处:网络
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.

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 thi开发者_如何学编程s: 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.


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


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.


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


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):

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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消