question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow/default to disabling all CDN operations

See original GitHub issue

Thanks again for getting this going.

As I’ve hinted at over on #41, a huge benefit of static sites is that they can be, well static. By this I mean: once you get a build working and put someplace, it will work, provided some future browser hasn’t disabled a critical API, even if that someplace is a USB stick or DVD in a computer that can’t access the internet.

I don’t think it’s reasonable in the long term to trust any of the major CDNs to necessarily be around in five years, much less bespoke ones like mathjax and pyodide. Further, CDNs are a source of lapses in user privacy and can be abused/disabled to affect harm/censorship by any number of agents.

I would be tempted to give a pass to content-addressable systems (e.g. git, fossil, bittorent, hypercore, ipfs) that can be verifiably cached, locally, and differentiably updated, but for now I think part of being able to fully realize the potential of this system is its ability to generate archival-grade content that can be used without access to The Internet, even if that isn’t the default mode of operation.

The Challenges

Right now, this looks like:

  • mathjax:
    • understandable
    • I feel like lab core or server should probably just suck it up and distribute it
      • but failing that, another, another copy of mathjax in a distributed package a la #41 isn’t going to kill anybody’s internet
  • pyodide:
    • sticky indeed!
      • import pandas, matplotlib actually only pulls 32mb of data, which honestly is within the range of “sane,” i’d say, to distribute as an sdist… and even a whl, if it doesn’t get duplicated.
        • over on ipydrawio, i’ve done some of the dirty work to get path-perfect things in place with !!file-loader!, so it’s definitely doable to make something that quacks like their CDN.

Once it is working, “offline,” keeping it that way is always going to be a challenge… I’ve had some luck with gross /etc/hosts stuff in VM testing, but perhaps there are better, browser-based ways to do it now.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bollwyvlcommented, Dec 6, 2021

Well, we don’t have a packaged solution for a fully-self-hosted solution, but with #425 and #427 in, it is now possible to configure a jupyter lite that doesn’t create any third-party requests 🎉 !

1reaction
bollwyvlcommented, Nov 24, 2021

Whew! With #419 in, we’re really just down to calling out to CDN for pyodide. As discussed on #310, the full pyodide distribution is 178mb: we don’t even really want this in our tests, etc. Instead, I’m thinking, this would go well on the demo site… or perhaps a separate one altogther, e.g. reproducibility-demo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MVP · GitHub
Allow/default to disabling all CDN operations #45 opened by bollwyvl performance. Gotta go fast. From Backlog. Copy card link.
Read more >
Configuring Unicast RPF [Cisco Nexus 9000 Series Switches]
Unicast RPF deflects attacks by forwarding only the packets that have source addresses that are valid and consistent with the IP routing table....
Read more >
Disabling the CDN - Knowledge base Selectel
Follow these steps to delete a CDN resource: Click Delete in the resource menu. Enter the CDN resource name to confirm the operation....
Read more >
config system global - Fortinet Documentation Library
Parameter Description Type Size admin‑forticloud‑sso‑login Enable/disable FortiCloud admin login via SSO. option ‑ admin‑https‑ssl‑versions Allowed TLS versions for web administration. option ‑ admin‑port Administrative access port...
Read more >
Maintenance and Service Guide - HP
Computer appears locked up and will not turn off when the power button is pressed . ... to improve performance when operation conditions...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found