background preloader

Best Practices for a Faster Web App with HTML5

Best Practices for a Faster Web App with HTML5
While good, this article only tells part of the performance story. View html5rocks.com/features/performance for the whole picture of performance improvements. Introduction Much of HTML5 aims to deliver native browser support for components and techniques that we have achieved through JavaScript libraries thus far. Using these features, when present, can end up delivering a much faster experience for your users. Tip 1: Use web storage in place of cookies While cookies have been used to track unique user data for years, they have serious disadvantages. These two web storage objects can be used to persist user data on the clientside for the length of the session or indefinitely. Tip 2: Use CSS Transitions instead of JavaScript animation CSS Transitions give you an attractive visual transition between two states. By adding the toggling the classes of totheleft and totheright you can move the box around. Tip 3: Use client-side databases instead of server roundtrips No guarantees, though. :) Related:  others

Handlebars – SproutCore The following post refers to SproutCore 2.0, which has split off as a separate project. However, the information within this post is entirely applicable with respect to using SC.TemplateView and Handlebars in SproutCore 1.8. If you wish to use SC.TemplateView in SproutCore, you only need be aware that the many views and controls in the Desktop framework may contain templates, but should not themselves be contained within templates. When people check out SproutCore 2.0 for the first time, one question that they frequently ask is: Do I have to use Handlebars? Handlebars, if you’re not familiar with it, is a semantic templating language written entirely in JavaScript. Handlebars, unlike other templating solutions like Eco, doesn’t tempt you to embed domain logic in your HTML. So, while the answer to the question is use whatever templating system you’d like, we think Handlebars is a great option.

Non-Jquery Page Transitions lightweight | Free software downloads Augmented Reality Mobile App with HTML5 Augmented Reality is a technology to add digital information layer on top of user's view of real world, this article shows how to create a simple augmented reality app with HTML5 using Intel XDK. The app is developed with HTML5 and uses Cordova* APIs to access device's compass, accelerometer and geolocation information. It also uses Augmented Reality mode intel.xdk API to overlay HTML information on top of a Camera view. Designing the Augmented Reality App: The app shows distance of cities from the users point of view when the device is pointed in the direction of the city. Static list of places is shown when the user hold the device flat (table top) Augmented reality mode that overlays a layer with distance of cities from user's point of view when the device is held up vertically and rotated around an axis. This sample app uses a static list of random cities with latitude and longitude information. Below are screen shots of List view and Augmented Reality mode view of the app:

Dart : Structured web programming Mobile Web Apps: Loading PagesBuildMobile This is the fourth excerpt from the book “Build Mobile Websites and Apps for Smart Devices” by Earle Castledine, Myles Eftos and Max Wheeler. BuildMobile is exclusively publishing a complete chapter from the book, the chapter on Mobile Web Apps, and this section is called “Loading Pages”. Now that we’ve learned the basics of handling touch screens, and picked up a couple of quick wins by optimizing our links and forms, it’s time to roll up our sleeves and get to work on the biggest component of just about any mobile web app. Unless your application is very basic, chances are you’re going to need more than a single page, and therefore, you need to think about how to switch between pages. Putting everything on one page, and then hiding and displaying sections as requiredLoading in new pages via AjaxIncluding only the complete skeleton of the app up front, and then bringing in data as required The approach you take will depend heavily on the application. 4.1. 4.2. Let’s start on the CSS.

The Top 14: The Most Popular HTML5 Hub Articles in 2014 To mark the end of a fantastic HTML5 year we’ve decided to take a look at HTML5 Hub content that has proved to be the most popular amongst our online fans and readers. This content was contributed by YOU, the HTML5 developer community. Here is a list of the 14 most viewed articles on the HTML5 Hub in 2014. Author: Andrew Hyde Smith In response to the growing market for mobile apps several HTML5 Mobile UI Frameworks are now available to help developers create attractive and responsive apps. Author: Kyle Simpson You may be starting to notice a trend from my recent articles here on HTML5Hub. Author: Christopher Schmitt Responsive design techniques are a way for developers to adapt a site layout to a wide range of devices, from desktops to iPhones, and have it consistently look sharp and load quickly. Author: Guillaume Lecollinet You have probably heard about the growing interest in WebGL, the technology that allows for real-time 3D graphics in the browser. Author: Tyler Smith Author: Alicia Liu

TurboManage Schepp/CSS-JS-Booster 11 CSS Learning Tools and Resources The industry of late has been overrun with articles, tutorials, and tools focused on Sass, even here on SitePoint we’ve been publishing more Sass content than ever before. But we haven’t forgotten about our roots: CSS. For those of you still learning CSS, or wanting to go a little deeper into specific CSS subjects, I thought I’d put together a list of CSS learning resources that I’ve come across in recent months. Enjoy! 1. Interactive slides that explore CSS 3D Transforms. 2. A nicely designed little game to help you learn CSS selectors. 3. A simple visualization of selectors in CSS. 4. A frontend coding quiz and it’s not easy. 5. A 6-chapter tutorial on the basics of CSS, with more chapters to come. 6. A CodePen-like playground for learning CSS. 7. Harry Roberts has updated his CSS Guidelines. 8. Chrome Dev Relations guy Paul Lewis has created a quick reference for those interested in what is triggered on a page when a given CSS property changes. 9. 10. 11. Know Any Others?

Related: