wp-rocket icon indicating copy to clipboard operation
wp-rocket copied to clipboard

Beacon script can be injected multiple times when there are multiple </body> in the page.

Open MathieuLamiot opened this issue 1 year ago • 0 comments

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.

MathieuLamiot avatar Sep 08 '24 11:09 MathieuLamiot