Web website development is currently undergoing a huge change. ServiceWorkers, sensor access, push notification, and other methods will break the original Web framework. In 2015, we could use these methods to quickly change our website. Find the most appropriate functions among the increasing number of Web functions. The original idea of Web is a general application version, or "application" in history books ". It is the minimum denominator that can run anywhere, so that the Web is fully built in a "framework", and the potential function is limited to a "rectangular content ". Early applications allow developers to execute code in the background, provide cached data for offline use, use push notifications, and provide functions that cannot be provided by other websites. However, the Web is currently undergoing a huge change. The browser responds to the application revolution, and now anyone can use these changes to "break the framework ". There are three methods to break the framework: 1. ServiceWorkers allows applications to use the backend processing capabilities of the server. for example, you can use hooks to start a Web application offline. The core of the system is event-driven Web Worker, which responds to events distributed by Web documents or other event sources. On the Open Web Platform, Service Worker provides an Entry Point for event-driven background processing and can be expanded to support other standard requirements. It allows a Web page to have scripts running in the background, so that the Web application looks more like a native application. 2. sensor access will make the page "aware" of the user's environment. For so many years, the webpage only knows the size of the user's screen and the browser type. Currently, the data of various sensors is available, and ambient light, microphones, and cameras appear in W3C standards, which gives pages outside the rectangular boundary of the website. 3. Push Notifications allow the website to be continuously connected to their users, even when the user closes the browser options for the website. 4. The combination of ServiceWorkers and push notification also has a very important symbiotic effect. push does not have to display a notification to the user, instead of executing arbitrary ServiceWorkers code. In other words, imagine your favorite program. when you watch the first episode, push and execute ServiceWorkers to pre-load the second episode into the cache. when you are offline, you can watch the second set of content when you want to view it. What do we need to pay attention? When a large number of features are added to a browser, some may be "shocked ". Therefore, each function requires a permission check/visual indication to indicate that it is used. For example, when recording a microphone, you must have an icon to let the user know what happened and use this icon to cancel the application. Another major trend is security networks. new features such as ServiceWorkers and push are powerful, and HTTPS is required to protect users and website owners. This prevents malicious wireless operators or ISP-injected code from affecting websites and users for a long time. In 2015, EFF will provide SSL for free. Google even suggested marking all HTTP in the browser as insecure, which will lead to explosive conversion of websites into SSL. Editor's note: Our Common link addresses start with "HTTP". some websites gradually use SSL for security reasons, which changes to "HTTPS" protocol. For example, when you access the ingress. In this access mode, it indicates that you are encrypting the connection with the website, and the communication information between you and the website is hard to be obtained by a third party. How can I locate my website in 2015? Here are some quick ways to change your website and make your website far ahead: 1. "offline first": use ServiceWorkers to cache the latest status of your website, present it, and display loading messages when getting new data. this will generate a lightning user experience. 2. intelligent response: use effective sensing data to provide users with preset or other adjustments. For example, if a website has a lot of content, you can adjust the contrast based on the lighting conditions. Game or other interactive content? Then we connect motion sensors to provide users with an immersive experience. 3. reconnect your users: find a natural method that suits your website to arouse users' memories. Keep your website fresh. Some examples are good, such as reminding new content (new messages/friend requests ). Visitors of a project tend to look at the price, so you need to find a suitable application for your website. Instead of imitating others. Get the LAMP brother's original PHP video tutorial CD/detailed PHP Essentials edition for free. for details, contact the customer service on the official website: Http://www.lampbrother.net You can subscribe to the email and I will share IT tutorials and books from time to time. Http://list.qq.com/cgi-bin/qf_invite? Id = ea7d919ad268249bce2be53a3e16da0f0ec55ac36513c68e
|