add save/download button to report
See original GitHub issueSaving the page should just work since all assets are inlined, but the browser’s “Save Page As” has always been awkward and error prone, so users avoid it. Should be easy to instead add a save (or download) link to the report.
Something like <a href="#" download="result.html">save me, please</a>
looks like it works correctly with the blobURL-based report (after #908), and for nice symmetry it works with the CLI generated report as well, though of course you already have the CLI report in your file system if you’re looking at it.
Could also customize the download
attribute’s value to match the CLI report naming so you don’t get collisions when saving multiple reports.
Need a nice save link or icon. Maybe replace the print icon?
@paulirish since I believe you were thinking about this and sharing reports after doing #908
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (6 by maintainers)
Top GitHub Comments
Ref:
Closing this in favor of https://github.com/GoogleChrome/lighthouse/issues/1166