Code Monkey home page Code Monkey logo

Comments (3)

addyosmani avatar addyosmani commented on August 19, 2024

Read some more about pre-fetching. Here are some thoughts on it from James Burke when they were discussing ideas for Require.js 2.0:

I do not want to support prefetching via localStorage natively in the loader, but it can be added by a script of your choosing by overriding requirejs.load and doing something similar to what it does, but cache to localStorage after the fetch. In general though I prefer using appcache over localStorage since appcache means all the UI can run offline. It does take some time to set up correctly and it has its quirks, but to me it also gives more benefits.

@dustinboston I wasn't sure whether your pre-fetching concept wanted to store the pre-fetched content in say, a data store or just load it and not execute until some later time. I explored fetching and localStorage caching of scripts for my basket.js project and just wanted to clarify whether you wanted to store these prefetched scripts in memory only for the current "session", disposing of them on refresh.

from aura.

sbellity avatar sbellity commented on August 19, 2024

@addyosmani what is the status on this ? Not sure I understand the use case...

from aura.

addyosmani avatar addyosmani commented on August 19, 2024

I think the use-case was that there may be dorment widgets you would like to load into your page and 'cache' somehow but not actually execute until someone created an instance of the widget. I honestly feel like there are enough ways to work around this requirement that we could close this issue without pursuing it. Should anyone badly need it, we could always revisit.

from aura.

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.