Skip to content
jamesu edited this page Sep 12, 2010 · 1 revision

Introduction

Since Rucksack’s Javascript hasn’t really been optimised yet, you may find that on certain mobile devices (e.g. Nokia Internet Tablets) the interface can get very slow.

Causes

  • mousemove handler for #content (PageHoverHandlerFunc)
  • Re-binding in Page.rebind
  • Re-creating jQuery objects when storing them would be more appropriate
  • RJS handlers not optimized

Solutions

  • Bind PageHoverHandlerFunc to mousedown instead (appropriate if the device is touch-based)
  • Split page re-binding up so elements which will not be in the page won’t be binded
  • Store copies of frequently accessed jQuery objects
  • Re-write RJS handlers