[jawsscripts] Re: Extending with Use statement

  • From: Doug Lee <doug.lee@xxxxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Mon, 9 Nov 2020 17:15:48 -0500

In general, I'd recommend
* One jss/jsb/jsd file set per control domain, meaning per organization for 
example.
* Installers that can update jcf/jkm/jgf files for each, because there can only 
be one of each of those per application.
* No code in the main Teams.jss file besides Use lines and the filler I 
recommend for compilation.

Offhand though, I don't know why you would see slower key handling based on how 
you split up your code. My suspicion is that there is a difference in what code 
is actually run or in what order. When you put code in the main
file, it runs before any code loaded by a Use line. When you have multiple Use 
lines, the last one gets first shot at running a script or function, then the 
next going up, etc. This is why you always put your custom code
loader Use lines before the top, in your case Use "teams.jsb", line.

On Mon, Nov 09, 2020 at 10:09:43PM +0000, Bob wrote:
So I don’t have to update it if freedom patch theirs.
It’s the same theory as modifying the default jss that you just use default.jsb 
and use your own customDefault.jsb

I want to take it a step further though and be able to add additional 
modifications for specific customers without having to recompile the main 
modifications individually for them if I update those.

Bob

On 9 Nov 2020, at 20:31, Snowman <snowman@xxxxxxxxxxxxxxxx> wrote:

Hey bob,
very curious about that.  Why does teams.jss have to use itself?



+--------------------------------------------------------------------------+
Listen to The Snowman on MushroomFM.com, Saturday evenings, 8PM Eastern
time.
60's and 70's tunes, and gently conservative talk.

----- Original Message -----
From: "Bob" <temp@xxxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Monday, November 09, 2020 3:23 AM
Subject: [jawsscripts] Extending with Use statement


I am a little stumped.
I am writing some modifications for teams.

I have tried 2 different setups:

Teams.jss with
Use “teams.jsb”
And all my modifications in the teams.jss file.

Teams.jss with
Use “teams.jsb”
Use “teams_modifications.jsb”
And an unused function to stop errors as per Doug’s recommendations.

I would prefer the second option so that I can add further use statements in
the future to allow me to incorporate additional modifications on a per
organisation basis without having to create separate script files if I
update the core that would effect all organisations the scripts are supplied
to.

The issue I have is that with the exact same code in the use modified file
as I put in the teams jss I get a huge increase in lag on keypresses. Down
arrow through the chats list becomes unusable.

Any ideas why this could be or what I might need to do to overcome it?

Thanks

Bob



__________�

View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts

__________�

View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts


__________�

View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts

-- 
Doug Lee, Lead Accessibility Architect
Level Access - over 1,000 organizations trust us to help them achieve and 
maintain digital accessibility compliance!
mailto:Doug.Lee@xxxxxxxxxxxxxxx  http://www.LevelAccess.com
"While they were saying among themselves it cannot be done, it was done." 
--Helen Keller
__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: