HTML6 single-page applications without JavaScript cause an uproar
HTML6 is intended to implement a single page application without JavaScript, which has caused an uproar in the front-end development community. Take a deep breath and continue with the following content.
W3.org shared a casual proposal for HTML6, which caused heated debate in the front-end community. This suggestion was submitted by former NSA employees and entrepreneurial enterprise-level Bobby mongoumder, claiming that a high-performance responsive Web experience does not require JavaScript support.
Mongoumder writes: emerging Web applications Load dynamic content through JSON APIs, which is a standard design mode for single-page applications. Most people use this method because it saves a lot of time than loading a complete HTML page.
This mode is widely used. Therefore, the suggestion of javasumder is that in the future, browsers should directly provide the function of dynamically loading content without the need for developers to write any JavaScript code.
The following is the HTML code recommended by the aggregumder:
- <DOCTYPE html>
- <HTML LANG=“en”>
- <HEAD>
- <FIXTURES lang=“xml”>
- <model class=“MyArticleData”>
- <rsp stat=“ok">
- <article label=“one” id=“1">
-
- <body>"<p>This is the first article intro.</p><p>This is the second paragraph.</p>"</body>
- </article>
- <article label=“two” id=“2">
-
- <body>"<p>This is the <em>second</em> article.</p>"</body>
- </article>
- </rsp>
- </model>
- <model class=“MyImageData”>
- <rsp stat=“ok">
- <image label="Square" width="75" height="75" source="https://mycontentserver.com/image_s.jpg" id=“3"/>
- <image label=“Tall" width=“300" height=“200" source="https://mycontentserver.com/image_l.jpg" id=“4"/>
- </rsp>
- <rsp stat=“loading">
- <image label="Square" width="75" height="75" source="https://mycontentserver.com/loading_image_s.jpg" id=“1"/>
- </rsp>
- <rsp stat=“some_error">
- <image label="Square" width="75" height="75" source="https://mycontentserver.com/error_image_s.jpg" id=“2"/>
- <message
- </rsp>
- </model>
- </FIXTURES>
- </HEAD>
- <BODY>
- <MENU class=“controller”>
- <A href=“http://api.mywebsite.com/api/load-new-article” model=“MyArticleData">Click here to replace the articles with different articles.</A>
- <A href=“http://api.mywebsite.com/api/load-new-image” model=“MyImageData">Click here to replace the picture with a different picture.</A>
- </MENU>
- <MAIN class=“viewer”>
- <ARTICLE class=“center">
- <H1 model=“MyArticleData.rsp.article(label=‘one’).headline” />
- <SPAN model="MyArticleData.rsp.article(label=’one’).body” />
- </ARTICLE>
- <ARTICLE class=“sidebar">
- <H1 model=“MyArticleData.rsp.article(label=’two’).headline” />
- <SPAN model=“MyArticleData.rsp.article(label=’two’).body” />
- </ARTICLE>
-
- </MAIN>
- </BODY>
- </HTML>
Do you think this suggestion is reliable?