Comments (3)
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.
@addyosmani what is the status on this ? Not sure I understand the use case...
from aura.
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)
- Doubt about duplicate element and maintain the associated events HOT 3
- Framework design flawed! Removing dependencies jQuery and Underscore. HOT 12
- Requirejs repair Tons of issues. HOT 1
- Mediator dependency removal Event Emitter HOT 3
- Support for loading of individually optimized components? HOT 15
- Asynchronous/dynamic loading of components? HOT 3
- Does Aurajs compatible with IE6? If not, how should I do to make it support?
- Error when manually loading a component
- Data management HOT 4
- ideas or plans about aura's job in relation with polymerjs HOT 5
- Can't go past a Grunt Task referring component initialize
- hi guys did you abandon the aura project? HOT 2
- Access to parent(super) methods within component HOT 1
- how to Concatenate the files of the decoupled modules HOT 4
- External links not working with Android webview HOT 1
- [BUSINESS CRITICAL] aurajs.com - github pages site is inaccessible HOT 6
- How to use jQuery and Flot with AuraJS ?
- Lightening component built upon aura js
- The project's domain is advertising some pocker stuff :)
- Aura
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aura.