More Related Content
Similar to Ajax and RJS (20)
More from Dominiek ter Heide (9)
Ajax and RJS
- 3. Ajax
• mini web request from javascript
• used to update pieces of content in page
- 4. When NOT to use AJAX
• when the action is related to navigation
• when there is another AJAX call inside that
action (will get very complicated)
- 5. Cons of AJAX
• can slow down a page just as easy as speed
up a page
• explosion of partials
- 6. Pros of AJAX
• when done well, it will make the user
experience much better
• saves server traffic and potentially load
• and...
- 8. How does it work?
Something like this:
You always need a library.