Advanced: Mod Performance Tuning
Best practices for performance tuning mods
Key Concepts
Secure Sandbox
Best Practices and Tips
Prefer variable expressions over text templates
Merge sequential Run JavaScript Function bricks into a single brick
Avoid passing extraneous data to the Run JavaScript Function brick

Remove unused brick output variables

Use nesting when operating on large data that's not required by subsequent bricks

Use the "Get shared page state" brick to efficiently select subsets of mod variables

Toggle off non-event data for Trigger input for rapid triggers and/or heavy-weight pages

Avoid inefficient button location and Trigger selectors
Last updated
Was this helpful?