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 traditional way in html <div>Some text</div> or using javascript dom render, like this: div.appendChild(document.createTextNode("Some text"));?
Stick with the traditional HTML. It’s not only faster than doing everything with javascript, it’s much more maintainable.
Unless there is a compelling reason otherwise, stick with the straight up HTML and use javascript for the more interactive pieces of your app.