Skip to content

Latest commit

 

History

History
98 lines (61 loc) · 5.01 KB

get-performance.md

File metadata and controls

98 lines (61 loc) · 5.01 KB

Get Better Performance from your App

Date: 2015-10-11
Last Update: 2016-01-10

This will be cleaned up - soon. (2016-01-10)

Generally, the tips come in two varities.

  1. Do this.
  2. Don't do this.

1. Do this

  1. Hardware Acceleration
  2. The Impact of Content Reflow (7 points to analyze)
  3. Keep Graphics Simple
  4. Touch Interactivity (use touch events, not mouse)
  5. JavaScript Optimizations
  6. Native Performance
  7. UI & UX Considerations
  8. Test On Devices

2. Don't do this.

Here are just a few rather obvious mistakes they make.

  1. Uses JQuery (and JQuery Mobile)
  2. Massive Footprint. 248k wowsers
  3. click instead of tap
  4. setTimeout animations
  • Problem #1: Scope inheritance and dynamic scoping
  • Problem #2: Dirty checking
  • Problem #3: Dependency injection
  • Problem #4: Pointless complexity
  • Problem #5: Server-side rendering

Other DO THIS Articles

Other Useful articles

My notes from the documentation

Tip #1

With the Android Webview you can reduce screen flicker *when changing orientation*, by reading below.

Cookie and Window Management

The standard behavior for an Activity is to be destroyed and recreated, when the device orientation or any other configuration changes. This will cause the WebView to reload the current page. If you don't want that, you can set your Activity to handle the orientation and keyboardHidden changes, and then just leave the WebView alone. It'll automatically re-orient itself as appropriate. Read Handling Runtime Changes for more information about how to handle configuration changes during runtime.

Videos

Responsive HTML5 Touch Interfaces

Unapplied/Unsorted

Lodash, the JavaScript Library You're Already Using
http://www.infoq.com/news/2015/03/lodash-utility-library

Though lodash is popular with node.js developers, it is also used by browser-based projects. Web developers can use the experimental build tool to cherry-pick which methods their project needs rather than downloading the entire library. For node.js projects, individual methods can be included when the whole package isn't needed.

Comparing JavaScript Templating Engines: Jade, Mustache, Dust and More - November 11, 2014
https://strongloop.com/strongblog/compare-javascript-templates-jade-mustache-dust/

Lets talk templates, specifically JavaScript powered templates. Even more specifically ? template engines that work as well on the server side as they do on the client side.

Templating Engines (undated)
http://jster.net/category/templating-engines

These JavaScript templating engines allow you to perform string interpolation and then some using some specific templating syntax. Examples: mustache.js and Jade.

5 Ways to Make Your Site Smaller and Faster - February 8, 2015
https://davidwalsh.name/site-speed

To be a great everyday developer, we're almost destined to feel as though our work isn't good enough -- what a negative way to live our lives!

The good news is that there are a few methods for incredible easy gains in the performance and load time departments. Here are five gains you can complete in minutes to make your site faster for all users!