Simple html vs Javascript generated html?

前端 未结 12 1605
故里飘歌
故里飘歌 2020-12-30 13:09

In my web application I would like to complately avoid html and use only javascript to create web-page\'s dom tree.

What is faster writing web content in the traditi

12条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-30 13:43

    By far the traditional way is faster, the user downloads the file, it is there, parsed and done.

    If you do the JS way the page has to be built client-side, EVERY time they load the page.

    That is just a horrible way to build a page IMHO and a nightmare to manage/update/create

提交回复
热议问题