BoldGrid / w3-total-cache

GNU General Public License v2.0
153 stars 86 forks source link

PartyTown Integration #987

Open jacobd91 opened 3 weeks ago

jacobd91 commented 3 weeks ago

This PR adds a new feature as an "extension" of the User Experience module

To enable visit Performance -> General Settings -> User Experience and check the checkbox for Enable Partytown

From there you can visit Performance -> User Experience and click on the PartyTown anchor in the anchor menu

Settings include

Once configured purge the cache and then refresh any front-end page. View the console log for any errors or debug output if enabled. To see if scripts were processed via the offload look at the DOM and search for "text/partytown" or your defined targets. If a defined target doesn't have type="text/partytown" then the mutator didn't find it. If the script was successfully offloaded then it will be type="text/partytown-x"

codecov-commenter commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 0% with 555 lines in your changes missing coverage. Please review.

Project coverage is 0.90%. Comparing base (5f60e03) to head (65aafaa). Report is 34 commits behind head on master.

Files with missing lines Patch % Lines
UserExperience_Preload_Requests_Page_View.php 0.00% 127 Missing :warning:
UserExperience_PartyTown_Extension.php 0.00% 124 Missing :warning:
UserExperience_PartyTown_Page_View.php 0.00% 113 Missing :warning:
UserExperience_PartyTown_Environment.php 0.00% 89 Missing :warning:
UserExperience_PartyTown_Mutator.php 0.00% 45 Missing :warning:
UserExperience_GeneralPage_View.php 0.00% 32 Missing :warning:
FeatureShowcase_Plugin_Admin.php 0.00% 16 Missing :warning:
UserExperience_Plugin_Admin.php 0.00% 5 Missing :warning:
UserExperience_Preload_Requests_Extension.php 0.00% 3 Missing :warning:
Root_Environment.php 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #987 +/- ## =========================================== - Coverage 0.91% 0.90% -0.01% - Complexity 19453 19509 +56 =========================================== Files 674 678 +4 Lines 97946 98430 +484 =========================================== Hits 893 893 - Misses 97053 97537 +484 ``` | [Flag](https://app.codecov.io/gh/BoldGrid/w3-total-cache/pull/987/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BoldGrid) | Coverage Δ | | |---|---|---| | [](https://app.codecov.io/gh/BoldGrid/w3-total-cache/pull/987/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BoldGrid) | `?` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BoldGrid#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features: