open-sauced / app

🍕 Insights into your entire open source ecosystem.
https://pizza.new
Apache License 2.0
429 stars 228 forks source link

feat: now html2canvas-pro is dynamically imported only when needed and then cached #4044

Closed nickytonline closed 3 months ago

nickytonline commented 3 months ago

Description

Now html2canvas-pro is dynamically imported only when needed and then cached, saving about a 45kb of JS loading on any page that uses it on initial page load.

Related Tickets & Documents

Closes #4033 Relates to #3975

Mobile & Desktop Screenshots/Recordings

Steps to QA

  1. Go to a repository page, e.g. https://deploy-preview-3966--oss-insights.netlify.app/s/kubernetes/kubernetes
  2. Hover over the Contributor Confidence card.
  3. Notice the copy button appears in the top right corner.
  4. Click it.
  5. A toast message says the image was copied.
  6. Paste the image in for example GitHub markdown, socials, Slack etc.
  7. The image of the given stat/graph appears.

Tier (staff will fill in)

[optional] What gif best describes this PR or how it makes you feel?

netlify[bot] commented 3 months ago

Deploy Preview for design-insights ready!

Name Link
Latest commit 2efc80a2a9e2747adffdef0c81bfca838427b3e7
Latest deploy log https://app.netlify.com/sites/design-insights/deploys/66ce16acc32f5300086a7c21
Deploy Preview https://deploy-preview-4044--design-insights.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 3 months ago

Deploy Preview for oss-insights ready!

Name Link
Latest commit 2efc80a2a9e2747adffdef0c81bfca838427b3e7
Latest deploy log https://app.netlify.com/sites/oss-insights/deploys/66ce16ac205399000893cbc0
Deploy Preview https://deploy-preview-4044--oss-insights.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.