Home
Developers

Developers

  • Documentation
    • Developer Guide
    • API Reference
    • Style Guide
    • How-To
    • Troubleshooting
  • Submit a Flake
  • Support

Pageflakes How-To and Troubleshooting Guide

  • Manage Flake Instances
  • Server-Side Scripting
  • Auto-Save Settings
  • Storing an Array into a Profile
  • Using CSS
  • Access Web Services from Flakes
  • Flake Development Tools
  • Troubleshooting
    • Using the "id" element correctly
    • Using XMLHttpRequest
    • Issues with Internet Explorer, Firefox and Opera
    • Use CDATA inside script blocks
    • Avoid memory leaks and understand 'this'
    • Minimize processing in load()
    • Do not use alert()
    • Do not use <form> elements
Home » Documentation » Troubleshooting

Minimize processing in load()

When a page is loaded, the load() function of all the embedded flakes must be called. This causes a large amount of operations, and thus to ensure that pages load in a timely fashion it is important to minimize the processing that occurs in the load() call.

More specifically it is recommended that:

  • The user interface of the flake is displayed as soon as possible in the load() call.
  • Access to the Profiles is kept to a minimum.
‹ Avoid memory leaks and understand 'this'upDo not use alert() ›
»
  • Printer-friendly version