资 源 简 介
Overview
Many times when developing web application we need to manage parts of it to load parts depending on cases. Here is very small utility to help with this issue.
How it works
All you need - is to add a tiny JavaScript called "loader.js" to very simple main page.
Than create several widgets. Load the widgets only if needed and in background.
What is widget
This is up to 3 parts (js, html & css) packed as JSON in following format:
{ "html" : "... html of a widget ...", "js" : "... javascript ...", "css" : "... style ..." }
I don"t recommend to write the widget in JSON format, instead see how I do it in 3 separate files and simple script to wrap it into JSON.
Where to start?
You can download the example and add your widgets. For now you can see PHP and Google-App-Engine with Python examples.