Performance Hands-On 17 - Tracking iframe Communication

What You'll Learn

In this exercise, you'll learn how to use the Performance tool to track and analyze communication between a main page and an iframe using postMessage.

Instructions

  1. Open DevTools (F12 or Ctrl+Shift+I / Cmd+Option+I)
  2. Go to the "Performance" tab
  3. Click the "Record" button (⚫) to start recording
  4. Click the "Send message to iframe" button below several times
  5. Click the "Send message to main frame" button in the iframe several times
  6. Stop the recording by clicking the "Stop" button in DevTools

What to Look For in the Performance Panel

iframe Communication Demo

This demo demonstrates how postMessage communication between frames appears in a performance trace.

Received 0 messages