[TIMOB-8355] MobileWeb: Improve performance of Mobile Web
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-06-29T18:44:31.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2012-03-28T12:22:43.000+0000 |
Updated | 2018-04-04T23:20:20.000+0000 |
Description
Need to make mobile web as fast as possible. Ideas include:
* AST parser to optimize code
** Eliminate dead code
** Reduce size of code
** Detect event behavior, disable unused events and speed up responsiveness
** Use "Ti" instead of "Titanium"
** Remove named functions that are assigned to local variables
** Inline "small" constants (i.e. Ti.UI.FILL and Ti.UI.SIZE)
** Remove exceptions
** Convert all named colors to hex
* Custom AMD aware code minifier
** This would be an extension of the AST parser and would replace the closure compiler
** Remove comments
** Minify CSS, HTML, JSON
** Remove log calls based on log level
** Inline images
* General code reduction best practices
* Gestures/touch events
** Bind gestures on first use
** Queue and process touches every X milliseconds (where X could be 15ms)
* DNS prefetching
** Use
* Lazy loading
** Split dependencies to soften the initial load time
* Deferred execution
** Only cache top priority JavaScript in require.cache()
** All other JavaScript is cached in commented