Skip to content

Commit

Permalink
Add doc block for detect.js
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Oct 9, 2024
1 parent a390e15 commit a760705
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugins/embed-optimizer/detect.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* Embed Optimizer module for Optimization Detective
*
* When a URL metric is being collected by Optimization Detective, this module adds a ResizeObserver to keep track of
* the changed heights for embed blocks. This data is amended onto the element data of the pending URL metric when it
* is submitted for storage.
*/

const consoleLogPrefix = '[Embed Optimizer]';

/**
Expand Down

0 comments on commit a760705

Please sign in to comment.