User:Paul: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Created page with '== Playing with the OpenWeb - What I've learnt == * If you want to compare colors, you may want to work in the Hue space (pure colors) : http://en.wikipedia.org/wiki/Hue * If y...')
 
m (change flag)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Playing with the OpenWeb - What I've learnt ==


* If you want to compare colors, you may want to work in the Hue space (pure colors) : http://en.wikipedia.org/wiki/Hue


* If you know the pixels representing an object, and want to know its position, compute its centroid: http://en.wikipedia.org/wiki/Centroid


* Reduce the number of HTTP requests: for your videos, provide the X-Content-Duration header: https://trac.annodex.net/wiki/HttpHeaders
{{VerifiedUser}}
 
* In a recursions, not tracing, so if you can (you always can) derecursify your functions.
 
* JS objects sent to a Worker via postMessage are JSONified. Be careful with big arrays.
 
* You can't use Javascript 1.7/1.8 in a Worker

Latest revision as of 20:30, 8 August 2013