Advanced JavaScript

Every new widget adds content weight, render time, possible security concerns to the parent webpage. Widget developers need to test and debug JavaScript, avoid potential vulnerabilities from 3rd party sources, and take steps to avoid possible collisions with other widgets rendered on the same page. In this session you will learn JavaScript best practices for widget development to help you reduce your page load, increase your perceived speed, and slim down your widget.
This advanced session will help you redefine your widget product requirements by integrating the best practices of JavaScript development on third-party platforms.
- Test and debug widgets using Firebug.
- Declare namespaces to isolate your widget and its variables to avoid collisions with other on-page content.
- Verify and validate external data sources to protect malicious or erroneous behavior.
- Use private variables and methods for protected access and reduced memory consumption.
- Tips for optimizing memory usage and widget performance across major browsers.