function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dev-FoxDev-Fox 

How to Avoid "Script Too large" error?

Hi All,

   I came across an issue now which should not get at this point of time. Actually, i am working on a controller. I 've already reached apprx 3000 lines of code. Still the requirement is there to code in the controller. But it is showing SCRIPT TOO LARGE error, how could i overcome this issue?

 

Thanks in advance,

Chiru

Richie DRichie D

Hi,

 

If you are approaching 3000 lines then I would suggest that you think about redesigning your code. Abstraction, helper classes, super classes etc... will all help to keep your classes to a maintainable size.

 

R.