You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User Story
As a user, I’d like to host Google Fonts locally to better control the fonts and improve LCP.
Acceptance Criteria
The content of combined Google Fonts CSS file will be saved into the local CSS file, we'll name the CSS with the value of the original URL hash and save it into the path like we do for Used CSS: (2/e/4/h/aerw32eweq.css)
The feature will handle V1 and V2 separately
The feature will automatically copy combined CSS files in a sub-folder under wp-content, specifically /wp-content/cache/wp-rocket/fonts/google-fonts/
The feature will rewrite URLs of the fonts found in the CSS file into the local path
The feature will download fonts to the path that would preserve the original URL structure in the /fonts/ directory: /wp-content/cache/wp-rocket/fonts/google-fonts/fonts/s/caudex/v17/esDS311QOP6BJUr4yMKPtbo-Ew.woff2 (input: https://fonts.gstatic.com/s/caudex/v17/esDS311QOP6BJUr4yMKPtbo-Ew.woff2)
The feature will create structure correctly for the multisites
Comment
Be sure to deliver testable output, to be enabled with the pre_rocket_get filter
The text was updated successfully, but these errors were encountered:
User Story
As a user, I’d like to host Google Fonts locally to better control the fonts and improve LCP.
Acceptance Criteria
/wp-content/cache/wp-rocket/fonts/google-fonts/
/wp-content/cache/wp-rocket/fonts/google-fonts/fonts/s/caudex/v17/esDS311QOP6BJUr4yMKPtbo-Ew.woff2
(input:https://fonts.gstatic.com/s/caudex/v17/esDS311QOP6BJUr4yMKPtbo-Ew.woff2
)Comment
The text was updated successfully, but these errors were encountered: