Your comments

In my case, Textastic hang with only 91kb file, jquery 1.7.1 min .js, using iPad2.

For a large file, what about the partial loading or streaming? (of course I totally have no idea about iOS development.)

And, 'mr. staff' had better let us know the limit of file size when Textastic attempt to load a large file, before it crashes or hang.