Reported and marked by Razem to revise and remove other unused CSS/JS
Remove unused JavaScript
Remove unused CSS
Defining a library
Code coverage at Google
Contributed by Razem to feed the Drupal pack for Lighthouse Stack Packs
lighthouse-stack-packs drupal.js
Problem/Motivation
Having a performance coverage issue of 100% not used CSS from the
Print layout style.
print.layout.css
On all media pages, which should only load for media: print
Steps to reproduce
Switch off CSS and JavaScript aggregation and advanced aggregations
Find Unused JavaScript And CSS With The Coverage Tab
Visit the site with an anonymous or basic authenticated
But do not ask to print or review the page for printing
The page should not load theprint.layout.css
asset file
Proposed resolution
Change to css/layout/print.layout.css: { media: print }
Remaining tasks
- Fix
- Performance coverage test
- Functional test
- Review
- Release
User interface changes
- None
API changes
- None
Data model changes
- None
Comments
Comment #3
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #4
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #5
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #6
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #7
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #8
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #10
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commented