Performance Hands-On 14 - Anon

πŸ” Analyzing JavaScript Event Context Collection

✨ In this hands-on exercise, you'll analyze how JavaScript collects data about click events on a shopping website.

πŸ› οΈ Performance Analysis Instructions:

  1. πŸ”§ Open Chrome DevTools (F12 or Right-click > Inspect)
  2. πŸ“Š Switch to the Performance tab
  3. ⏺️ Click the record button (circle) at the top
  4. πŸ‘† Click on a product item or "Add to Cart" button
  5. ⏹️ Stop the recording (square button)
  6. πŸ”Ž Analyze the results with focus on:
    • 🧡 The "Main" section to see JavaScript execution
    • πŸ‘‚ Look for the event listener functions triggered by clicks
    • πŸ” Find the data collection function in the call stack
    • ⏱️ Observe how long the event context collection takes
  7. πŸ”¬ Examine the "CollectContext" function in the call tree
  8. 🐒 Note any performance bottlenecks in the data collection process
  9. πŸ’‘ Consider alternative data collection methods, maybe using async execution

πŸ’‘ Performance Tips: