Coder Social home page Coder Social logo

Local deps? about clerk HOT 7 CLOSED

nextjournal avatar nextjournal commented on May 17, 2024 3
Local deps?

from clerk.

Comments (7)

borkdude avatar borkdude commented on May 17, 2024 4

Working on this.

from clerk.

mk avatar mk commented on May 17, 2024 1

True, this is annoying and Clerk should support working completely offline. I'll revisit this after #36 which switches to tailwind's play cdn and is another thing to consider for offline support.

from clerk.

mk avatar mk commented on May 17, 2024 1

f35635f implements caching of all assets used by Clerk in the browser's ServiceWorker, finally.

from clerk.

borkdude avatar borkdude commented on May 17, 2024

This has now been addressed in PR #113.
Before we merge this, please test commit ccae890.

You can cache assets locally, before entering a plane, with:

clojure -X nextjournal.clerk/cache-assets!

But also while using clerk, assets will be cached on first use.

from clerk.

borkdude avatar borkdude commented on May 17, 2024

Anyone? :)

from clerk.

mk avatar mk commented on May 17, 2024

Was chatting with @borkdude about resuming work on this. When we actually tried it we discovered to my surprise that Clerk does work fine when offline, as long as you previously had a notebook with the viewers you're using open. This includes KaTeX, Vega, Plotly etc which are all cached in the browser and do survive a reload. So this is a lot better than how I thought it worked.

We might want to consider bundling these deps in the jar in the future but would track that in a separate issue when the need arises.

from clerk.

den1k avatar den1k commented on May 17, 2024

Yes, I believe I was on a plane while debugging and had to do a hard refresh which put a hard stop to any development. Hard refreshes are somewhat common in moments of debugging despair. I think this is still a valid issue and it seems the solution is straightforward.

from clerk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.