March 2017
Beginner
358 pages
9h 51m
English
Just as with UI Scripts, it's best only to send those script files from the server to the client, that you intend to execute.
Sending data from the server to the client is "expensive" in terms of performance on-load. For this reason, it's best not to simply put all of your reusable code into a UI Script, and call arbitrary functions as needed. Instead, think carefully about when and where your scripts will load, and whether there's a way you might be able to load it only under certain conditions which indicate when it might be needed. Going back to our example of UI Scripts, this might take the form of having a specific view to which certain users are redirected using view rules, then you can add the necessary ...
Read now
Unlock full access