wp-rocket
wp-rocket copied to clipboard
Beacon script can be injected multiple times when there are multiple </body> in the page.
Context
https://wp-media.slack.com/archives/CUT7FLHF1/p1725795776110169?thread_ts=1725624439.071799&cid=CUT7FLHF1
The impact is that the beacon executes multiple times, and performs multiple AJAX calls. Only the first one is useful.
Expected behavior
The beacon is injected at most once.
Acceptance Criteria On a page with multiple
, the beacon is injected only once.