Load the RocketCDN iframe only when needed
Context
The RocketCDN iframe is currently loaded in the background on every admin visits. This adds workload to the server & to wp-rocket.me. It also prevents tracking properly the funnel of the RocketCDN Iframe.
Dependencies
NA
Expected behavior
The iframe should be loaded only when the user wants to see it.
Acceptance Criteria
- Open WP Rocket settings pages: no calls to the /cdn/iframe must happen.
- Open the RocketCDN iframe from the plugin: the iframe should show up quickly.
Additional Information
- If the ACs can be fulfilled, then let's communicate with the Addons team to re-enable tracking on /cdn/iframe pages.
- If they can't, we will need a follow-up GH issue about tracking clicks on the CTA opening the iframe, in the plugin.
@piotrbak @DahmaniAdame If we want to move forward with other rework of the RocketCDN iframe, this will be needed first, as it is a blocker for data tracking/funnel.
Related TP: https://wpmediaqa.testrail.io/index.php?/runs/view/1061.
https://group-onecom.slack.com/archives/C08ECU1RE93/p1753864518827249?thread_ts=1753187599.668509&cid=C08ECU1RE93