Open MirandaEcho opened 4 years ago
@benlk - Can you break this out into a set of prioritized & concrete recommendations with estimates? Thanks!
- The site uses a javascript-based image lazyloader, however this causes delays for the user. All major browsers save IE (deprecated) and Safari support the
loading
attribute for lazy loading of images, and it looks like Safari is making progress on adding support for that in the next release. WordPress will enable this in WordPress 5.5, but for now do we want to continue with the JS loader or try the WordPress feature plugin? https://wordpress.org/plugins/wp-lazy-loading/
This is possibly the highest-impact performance enhancer.
Recommendation:
- Many images are appearing at "full" size on homepage, rather than smaller, appropriate sizes.
Recommendations:
- pdfmake.js, vfs_fonts.js, Google Charts, jQuery inputmask, datatables
- "Tweets by Mississippi Today" widget adds 253KB of scripts and content plus 3MB of images to homepage load, substantially duplicates content elsewhere on homepage
This is possibly the highest-impact data-saver.
Options:
- Libsyn widget loads lots of fonts, scripts
- Many stories have short excerpts, only one line of text on desktop. With large images on many stories, on smaller screens it's hard to tell whether the image is for the text above or below the image. Switching to display images beside the headline and excerpt may improve the legibility of the homepage on smaller screens, as well as increasing density of information.
- Additionally, since the image tags on the homepage support srcsets, it may be possible for smaller displayed images to load smaller images over the wire.
Recommendations:
partials/content.php
. (2h)
- There are too many items in the global nav; on screens between 900 and 768px wide the right-hand section of the global nav (search, donate, subscribe) drops onto a second line.
Recommendation:
This is issue #91
- Popup should have a border or background to distinguish it from the page content
- Popup's "close" button doesn't have sufficient contrast between the :x: and the background
Recommendations:
What we reviewed:
Observations and recommendations
Homepage layout:
srcset
s, it may be possible for smaller displayed images to load smaller images over the wire.loading
attribute for lazy loading of images, and it looks like Safari is making progress on adding support for that in the next release. WordPress may enable this in a future release, but for now do we want to continue with the JS loader or try the WordPress feature plugin? https://wordpress.org/plugins/wp-lazy-loading/User engagement:
Pagespeed:
vfs_fonts.js
appears to be a support library forpdfmake.js
and is 369kb, comprising four whole fonts in a JS filehttps://www.gstatic.com/charts/48.1/js/jsapi_compiled_ui_module
https://s3-us-west-2.amazonaws.com/s.cdpn.io/3/jquery.inputmask.bundle.js
SEO Analysis:
Other: