What will happen if I make a client script 'global'?

Vivek Verma
Mega Sage
Mega Sage

Thank You!

1 ACCEPTED SOLUTION

DirkRedeker
Mega Sage

Hi

Marking a Client Script as "Global" will make is available to ALL Cient Scripts.

NOTE:
There is a technical drawback on doing so. Because it is available for all Client Scripts, it will be INCLUDED and transferred to EACH single Client Page shown in your Web-Browser, which also blows up your volume of data, that needs to be transferred for each opened page.

That will slow up your overall performance for end-users.

So, keep an eye on WHAT you put as "global". Use that VERY rare and only place code there, which is REALLY needed EVERYWHERE!!!

Let me know if that answers your question and mark my answer as correct and helpful.

BR

Dirk

View solution in original post

8 REPLIES 8

This community post has been plaguing me for the last 3 years, this is the closure is needed to let me get on with my life. Thanks Hunter.

Anurag Tripathi
Mega Patron
Mega Patron

It will run on all the views on that table.

-Anurag

DirkRedeker
Mega Sage

Hi

Marking a Client Script as "Global" will make is available to ALL Cient Scripts.

NOTE:
There is a technical drawback on doing so. Because it is available for all Client Scripts, it will be INCLUDED and transferred to EACH single Client Page shown in your Web-Browser, which also blows up your volume of data, that needs to be transferred for each opened page.

That will slow up your overall performance for end-users.

So, keep an eye on WHAT you put as "global". Use that VERY rare and only place code there, which is REALLY needed EVERYWHERE!!!

Let me know if that answers your question and mark my answer as correct and helpful.

BR

Dirk

priyanka garad
Giga Expert

hi,  

Marking a Global checkbox as checked makes the client script be associated with all form views of the selected table. If we uncheck the Global field, we can manually specify the name of a view to associate the script with.