What is the best practice organize a jQuery Mobile application?

后端 未结 4 1922
执念已碎
执念已碎 2020-12-31 22:27

I have found article that skims over this. But my main question is do I need a separate .html file for each screen? I am thinking yes but I would like an unanimous vote. Als

4条回答
  •  春和景丽
    2020-12-31 23:05

    I think its best to have a different html file for each screen. Not only will it help in maintaining the app code properly and tracking changes, but also prevent dom from becoming bulky as pages will be added when required.
    As for js, you can have separate js files during development and debugging, but i'd suggest u should bundle them and minify them before deploying the app and releasing it.

提交回复
热议问题