javascript - Advice handling a lot of Strings -
i'm working on browser-based textgame javascript , html(so far!). right i'm not storing kind of information, in future.
i'm telling big story game progresses , lot of text. i'm wondering if has advice on how handle this. im outputting parts of story @ once.
i don't want put thousands , thousands of words inside paragraph-tags in index.html file.
should put text in server , them need them? or can put text inside seperate file , call them there? if so, method effective?
any advice appreciated.
i'd recommend storing text on server in separate files. not make main front-end code cleaner, make easier create tools updating various parts of story, since relevant text won't contained in 1 large file.
Comments
Post a Comment