What is a max size of HTML Header of page?
branoDec 9 2008 — edited Dec 19 2008Coding JavaScript into HTML Header of one page in our application I am having a problem when length of whole javascript reaches about 30000 characters. I counted with MS Word counter as I copied whole script.
1. First problem was when I was over this limit running this page simply generates page not found with no obvious error. When I deleted some code reducing size it started to work. If I added simple alert to the some point it again problem with no obvious error.
So, my conclusion is that there is some limit and it is around 30000 chars???!!!!. As I found that comments are taken into account I had to delete a lot of my comments to work it out. So my code length is around 29000 characters. ...
2. Second problem I am having is when I exported the above application with working JavaScript and all other pages (size is under 30000 characters) and then I imported to our live apex instance I found that simply JavaScript was not copied into full size. Last part of the code was cut off.
I would appreciate if somebody can share similar experience or explanation or suggestion
Thank you,
Brano