Open jvanulde opened 1 year ago
Source: geoca-lighthouse-mobile-report-2023-01-24.pdf
Source: geoca-lighthouse-desktop-report-2023-01-24.pdf
For the most up-to-date scoring and expanded reports please visit PageSpeed Insights
Enable text compression Text compression has been enabled for the geo.ca cloudfront distributions as detailed in issue #117
There are a few scripts coming from geoview's distributions that aren't being served with text compression and I have followed up here: Compress scripts on server #659
Reduce unused JavaScript
Eliminate render-blocking resources
Reduce unused CSS
Avoid enormous network payloads
Serve static assets with an efficient cache policy Actively being worked as part of #117. Working on dev and should hopefully make it into the March 2023 release
Ensure text remains visible during webfont load
font-display: swap
Reduce the impact of third-party code Loading Adobe Analytics asynchronously. This did not make it into the Feb 2023 release but is ready for March 2023 release
Does not use passive listeners to improve scrolling performance Added the following inline script after loading jQuery to fix this:
jQuery.event.special.touchstart = {
setup: function( _, ns, handle ) {
this.addEventListener("touchstart", handle, { passive: !ns.includes("noPreventDefault") });
}
};
jQuery.event.special.touchmove = {
setup: function( _, ns, handle ) {
this.addEventListener("touchmove", handle, { passive: !ns.includes("noPreventDefault") });
}
};
jQuery.event.special.wheel = {
setup: function( _, ns, handle ){
this.addEventListener("wheel", handle, { passive: true });
}
};
jQuery.event.special.mousewheel = {
setup: function( _, ns, handle ){
this.addEventListener("mousewheel", handle, { passive: true });
}
};
[user-scalable="no"] is used in the element or the [maximum-scale] attribute is less than 5. Removed user-scalable=no from meta viewport tag in Phlox theme
Links do not have a discernible name Fixed by issue #79
Displays images with incorrect aspect ratio Fixed by issue #79
Missing source maps for large first-party Javascript Source maps weren't being included in the simply static build. Removed references to source maps in the javascript files
Document doesn't have a valid hreflang Document does not have a valid rel=canonical Enabled absolute URLs in Simply Static to resolve both of the issues above.
Source: geoca-lighthouse-mobile-report-2023-02-17.pdf
Source: geoca-lighthouse-desktop-report-2023-02-17.pdf
Image elements do not have explicit width and height Some images were using custom Elementor thumbnail sizes that don't correctly output these attributes. The custom thumbnail sizes were changed out for the medium_large thumbnail size
Eliminate render-blocking resources + Reduce unused CSS + Reduce unused JavaScript The new lightweight custom GEO theme (#120) was rolled out which got rid of the bloated Phlox theme. This further reduced both the unused CSS/JS and cut down the number of render-blocking resources as the theme only includes what is necessary and loads scripts and styles conditionally.
Additionally the new theme allowed for activating several of Elementor's performance optimizations that were previously conflicting with the Phlox theme. These features are:
[aria-hidden="true"] elements contain focusable descendents Several elements contained incorrect aria-hidden tags and those have been removed
Mobile
Desktop
Source: geo.ca-lighthouse-report.pdf
Consider the following tasks to improve performance: