Amazon Silk Developer Guide Amazon Silk Developer Guide
Total Page:16
File Type:pdf, Size:1020Kb
Amazon Silk Developer Guide Amazon Silk Developer Guide Amazon Silk: Developer Guide Copyright © 2015 Amazon Web Services, Inc. and/or its affiliates. All rights reserved. The following are trademarks of Amazon Web Services, Inc.: Amazon, Amazon Web Services Design, AWS, Amazon CloudFront, AWS CloudTrail, AWS CodeDeploy, Amazon Cognito, Amazon DevPay, DynamoDB, ElastiCache, Amazon EC2, Amazon Elastic Compute Cloud, Amazon Glacier, Amazon Kinesis, Kindle, Kindle Fire, AWS Marketplace Design, Mechanical Turk, Amazon Redshift, Amazon Route 53, Amazon S3, Amazon VPC, and Amazon WorkDocs. In addition, Amazon.com graphics, logos, page headers, button icons, scripts, and service names are trademarks, or trade dress of Amazon in the U.S. and/or other countries. Amazon©s trademarks and trade dress may not be used in connection with any product or service that is not Amazon©s, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon. AWS documentation posted on the Alpha server is for internal testing and review purposes only. It is not intended for external customers. Amazon Silk Developer Guide Table of Contents What Is Amazon Silk? .................................................................................................................... 1 Split Browser Architecture ....................................................................................................... 1 Machine Learning .................................................................................................................. 2 Getting Started with Amazon Silk ..................................................................................................... 3 Are You an Amazon Silk User? ................................................................................................. 3 Are You a Site Owner? ........................................................................................................... 3 Accessing the Amazon Silk User Guide ..................................................................................... 4 Amazon Silk Settings Menu ..................................................................................................... 4 Developing Web Content for Amazon Silk .......................................................................................... 6 Responsive Web Design ......................................................................................................... 6 How Does Responsive Web Design Work? ........................................................................ 8 Responsive Design and Amazon Silk ................................................................................ 9 The Takeaway ............................................................................................................. 11 Additional Resources ................................................................................................... 11 Amazon Silk User Agent Strings ............................................................................................. 12 User Agent String Examples .......................................................................................... 13 User Agent Detection ................................................................................................... 14 Feature Detection ................................................................................................................ 14 How To Detect a Feature ............................................................................................... 15 Additional Resources ................................................................................................... 16 Media Handling ................................................................................................................... 16 Images ...................................................................................................................... 16 Audio ......................................................................................................................... 17 Video ......................................................................................................................... 17 Touch ................................................................................................................................ 17 Touch Example Using jQuery Mobile ............................................................................... 18 Additional Resources ................................................................................................... 20 Screen Resolution ............................................................................................................... 21 Secure Connections ............................................................................................................. 22 JavaScript .......................................................................................................................... 22 JavaScript Loading ...................................................................................................... 22 Caching ............................................................................................................................. 23 Remote Debugging .............................................................................................................. 24 Do Not Track ....................................................................................................................... 25 Additional Resources ................................................................................................... 26 HTML5 Support ........................................................................................................................... 27 Support for HTML5 and Related Features ................................................................................ 27 HTML5 APIs ....................................................................................................................... 29 Animation Timing API ................................................................................................... 29 Application Cache API .................................................................................................. 30 Cross-Origin Resource Sharing ...................................................................................... 31 File API ...................................................................................................................... 32 File System API ........................................................................................................... 32 Geolocation API .......................................................................................................... 34 Indexed Database API .................................................................................................. 35 Server-Sent Events ...................................................................................................... 36 Touch Events .............................................................................................................. 36 XMLHttpRequest Level 2 .............................................................................................. 37 Web SQL Database ..................................................................................................... 37 Web Storage ............................................................................................................... 38 Web Workers API ........................................................................................................ 39 WebGL ...................................................................................................................... 39 WebSocket API ........................................................................................................... 40 HTML5 Elements and Attributes ............................................................................................. 40 Audio Element ............................................................................................................. 41 iii Amazon Silk Developer Guide Canvas Element .......................................................................................................... 41 contenteditable Attribute ............................................................................................... 42 Input Types ................................................................................................................. 43 Keygen Element .......................................................................................................... 43 Meter Element ............................................................................................................ 44 Output Element ........................................................................................................... 44 Progress Element ........................................................................................................ 44 SVG Element .............................................................................................................. 45 Video Element ............................................................................................................ 45 CSS3 Support ....................................................................................................................