Re: Safari
Re: Safari
- Subject: Re: Safari
- From: 2551phil <email@hidden>
- Date: Wed, 03 Apr 2013 23:24:51 +0700
Well, I for one am certainly interested in the problem about Safari and its solution.
Alas, I've no idea as to the answer, but I think its a valid question and I hope the list members can help shed some light on it.
Best
Phil
http://applehelpwriter.com
On 3 Apr 2013, at 23:16, Alex Zavatone <email@hidden> wrote:
> Thanks to whomever is at 17.151.62.50 near San Jose who tried to unsubscribe me from the list.
>
> If you have a problem with the fact that Safari is a resource and processor hog, you should take it up with the WebKit team, not me.
>
> When you're trying to get work down and your browser is eating up two cores, cutting your laptop's battery life down to 1.5 hours and eating up over 5 GB of RAM, you'd probably get pissed at your browser too.
>
> On Apr 3, 2013, at 12:00 PM, Alex Zavatone wrote:
>
>> On my Mac, Safari has proven itself time and again, to be the king of bloat and of processor hogging.
>>
>> It's not Safari per se, but the individual JavaScript routines on each web page that end up not properly disposing of old variables (WHY is it using 5.56 GB of RAM?) and chugging away at 100% on two cores while in the background.
>>
>> In evaluating this situation, it becomes obvious that
>> 1. it's in the background. Why the hell is the javascript engine still running at full blast?
>> 2. it's in the background. I don't need it to do anything at all.
>>
>> Immediately, I think that a process to detect when the app moves to the background and disable Javascript from the Develop menu is an easy approach.
>>
>> In the past, I grabbed the PIDs of the Safari and Safari Web Content processes and issued kill -SIGSTOP and kill SIGCONT to manage both processes, but this would be easier.
>>
>> Looking over my old code, I see that I never found out how to detect when the app moved to the background or the foreground.
>>
>> In Objective C, in an app delegate, there are these methods to detect from within an app, whether it is becoming frontmost or moving to the background:
>> – applicationDidEnterBackground:
>> – applicationWillEnterForeground:
>> – applicationDidBecomeActive:
>> – applicationWillResignActive:
>>
>> Is there a method to do this from Applescript on an event basis? I'd rather get an event than poll System Events for Is this a condition better detected from a Safari plugin?
>>
>> Thanks in advance.
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> AppleScript-Users mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> Archives: http://lists.apple.com/archives/applescript-users
>>
>> This email sent to email@hidden
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
References: | |
| >Safari (From: Alex Zavatone <email@hidden>) |
| >Re: Safari (From: Alex Zavatone <email@hidden>) |