HTML5 Why mobile application development need to introduce front-end engineering

Source: Internet
Author: User

Mobile apps developed using HTML5 and JavaScript, like typical modern web front-end projects, have a lot of javascript,html and CSS code, so front-end engineering is also important in HTML5 mobile application development, avoiding a lot of repetitive work , to provide efficiency and quality, optimize the performance of the product.

At present, the front-end engineering compared to the general framework of the main foreign Grunt,gulp, Baidu F.i.s, and so on, these frameworks are basically based on node. JS implementation (Baidu's F.i.s was originally based on PHP development, and later switched to node. js). node. JS has a strong affinity for front-end engineers, a variety of compression, optimization, and validation tools based on node. js, with extremely high operational performance and powerful NPM package management tools that make node. js the preferred platform for front-end automation and ancillary development tools. The command-line scripts for the Cordova,ionic framework we introduced earlier are all developed based on node. js.


For mobile Web projects, the performance of the front-end Web page optimization (mainly refers to a variety of file compression processing, CDN cache, Image quality optimization) is very important, because now mobile internet traffic fee is still very expensive, mobile bandwidth is generally not up to the level of PC bandwidth, 4G network has not been popularized, There are also many users who visit our mobile site via 3g,gprs or an unstable WiFi network. If the mobile site optimization is not good, users will spend a long time (more than 15 seconds) to open the site, while wasting a lot of traffic, the result is a large number of users lost.

For mobile web products, CSS and JavaScript file compression and merging, static file CDN cache, file cache problems and file hash version processing, HTML5 offline caching, etc., are the direction to optimize. These optimizations we need to do every time we make new products, if manual operation is bound to waste a lot of labor costs, and prone to omissions caused by errors, so we introduced a series of tools to automate these tasks, which is the front-end engineering.

For Hybridapp Development, we also need to compress and merge CSS and JavaScript files, delete unnecessary files to reduce the file size of the app installation package, save the user the download traffic, and also need to confuse JS to improve security ; Modify the relevant code for different platforms to better support cross-platform. These work can be done through front-end automation tools to provide research and development efficiency and quality.

HTML5 Mobile application development, like traditional web front-end development, uses JavaScript as the primary development language, so the automated scripting tools that are used when developing JavaScript programs are available, These tools are now implemented based on the node. JS platform, and with the asynchronous nonblocking features of node. js, these tools are very handy compared to traditional shell scripts. These front-end automation tools include Grunt,gulp,fis and so on, followed by an introduction to GULP applications.

For more reasons, you are welcome to discuss the supplement.

HTML5 Why mobile application development need to introduce front-end engineering

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.