HTML6 single-page applications without JavaScript cause an uproar

Source: Internet
Author: User

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:

 
 
  1. <DOCTYPE html> 
  2. <HTML LANG=“en”> 
  3. <HEAD> 
  4. <FIXTURES lang=“xml”> 
  5.     <model class=“MyArticleData”> 
  6.         <rsp stat=“ok"> 
  7.             <article label=“one” id=“1"> 
  8.                 
  9.                 <body>"<p>This is the first article intro.</p><p>This is the second paragraph.</p>"</body> 
  10.             </article> 
  11.             <article label=“two” id=“2"> 
  12.                 
  13.                 <body>"<p>This is the <em>second</em> article.</p>"</body> 
  14.             </article> 
  15.         </rsp> 
  16.     </model> 
  17.     <model class=“MyImageData”> 
  18.         <rsp stat=“ok"> 
  19.             <image label="Square" width="75" height="75" source="https://mycontentserver.com/image_s.jpg" id=“3"/> 
  20.             <image label=“Tall" width=“300" height=“200" source="https://mycontentserver.com/image_l.jpg" id=“4"/> 
  21.         </rsp> 
  22.         <rsp stat=“loading"> 
  23.             <image label="Square" width="75" height="75" source="https://mycontentserver.com/loading_image_s.jpg" id=“1"/> 
  24.         </rsp> 
  25.         <rsp stat=“some_error"> 
  26.             <image label="Square" width="75" height="75" source="https://mycontentserver.com/error_image_s.jpg" id=“2"/> 
  27.             <message 
  28.         </rsp> 
  29.     </model> 
  30. </FIXTURES> 
  31. </HEAD> 
  32. <BODY> 
  33.     <MENU class=“controller”> 
  34.         <A href=“http://api.mywebsite.com/api/load-new-article” model=“MyArticleData">Click here to replace the articles with different articles.</A> 
  35.         <A href=“http://api.mywebsite.com/api/load-new-image” model=“MyImageData">Click here to replace the picture with a different picture.</A> 
  36.     </MENU> 
  37.     <MAIN class=“viewer”> 
  38.         <ARTICLE class=“center"> 
  39.             <H1 model=“MyArticleData.rsp.article(label=‘one’).headline” /> 
  40.             <SPAN model="MyArticleData.rsp.article(label=’one’).body” /> 
  41.         </ARTICLE> 
  42.         <ARTICLE class=“sidebar"> 
  43.             <H1 model=“MyArticleData.rsp.article(label=’two’).headline” /> 
  44.             <SPAN model=“MyArticleData.rsp.article(label=’two’).body” /> 
  45.         </ARTICLE> 
  46.          
  47.     </MAIN> 
  48. </BODY> 
  49. </HTML> 

Do you think this suggestion is reliable?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.