dealing with large data in ajax

12
Dealing with Dealing with large data in large data in Ajax Ajax Robert Buffone Chief Architect Nexaweb Technologies

Upload: webtel125

Post on 14-Jun-2015

933 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Dealing With Large Data In Ajax

Dealing with Dealing with large data in large data in AjaxAjax

Robert Buffone

Chief Architect

Nexaweb Technologies

Page 2: Dealing With Large Data In Ajax

Agenda

• The Basics

• XML vs. JSON

• Delayed loading

• Paging

• Infinite Scrollbars

Page 3: Dealing With Large Data In Ajax

The Basics

• JavaScript Performance

• Data Processing

• Development

• DOM Creation

• Asynchronous

• Data Hiding

• Visual Tricks

Bonues

Challenges

Page 4: Dealing With Large Data In Ajax

Balance Your Constraints

• Processor

• Memory

• Network

Page 5: Dealing With Large Data In Ajax

XML vs. JSON

• Transfer Size

• Parsing

• Navigation

• Data Traversal

• Security

Page 6: Dealing With Large Data In Ajax

Delayed Loading

• Only create UI for the visible presentation.

– Example: www.yahoo.com

• Minimizes

– Startup time

– Bandwidth requirements

• User may never want the data

Page 7: Dealing With Large Data In Ajax

Paging

• Same principal as any application

• Load data in pieces

• Manage the state of the navigation bar

Page 8: Dealing With Large Data In Ajax

Infinite Scrollbars

• Capture Scroll Event

• Understand when user wants to scroll

• Notify user of paging

• Append Data

Page 9: Dealing With Large Data In Ajax

Ajax Performance

• Limit use of String concatenation

• Use for (i++) over for (in)

• Avoid using exceptions

• Minimize code needed

• Watch your scope

• More information can be found at http://www.rockstarapps.com

Page 10: Dealing With Large Data In Ajax

Visual Tricks

• Give users queues about progress.

• Overalls stop users from redoing an ongoing action.

• Display controls will data is loading.

Page 11: Dealing With Large Data In Ajax

Questions

• Type Questions into either the Chat or Q&A windows and I will answer them.

Page 12: Dealing With Large Data In Ajax

Getting Started

12

Attendees are eligible for:

• Extended Nexaweb Evaluation License

6-months plus 10 hours of Free Email SupportDownload Now: www.nexaweb.com/go/try

• FREE On-site Ajax Performance Consultation 1 day, on-site consultation by Nexaweb Tech Services.

Limited to first 5 respondents (US only). Customer is responsible for consultant travel expenses (maximum of $1,000 US).

Contact:Doug MonizNexaweb Business [email protected]