Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8355] MobileWeb: Improve performance of Mobile Web

GitHub Issuen/a
TypeStory
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-06-29T18:44:31.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsMobileWeb
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2012-03-28T12:22:43.000+0000
Updated2018-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