What are the coding considerations for achieving best performance with HTML5?

See this HTML5 Guide for PubNub on GitHub. For application examples, see Multiplayer HTML5 Game with MelonJS