NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item9693 for docu changes for 1.2 and 2.0.

Item11980: add topic: param to jqLoader -

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Enhancement New Engine JQueryPlugin  
actually, another idea would be to add a type=jqloader to INCLUDE to simply convert server side include into client side..

combine this with an (oob) cache timeout policy for webs and topics, we can improve lots of things.

-- SvenDowideit - 02 Jul 2012

There's how to do that using the url param:

<verbatim class="jqLoader {url:'/ThisWeb/ThisTopic?section=stuff;skin=text;cache_expire=6 hours'}">
%STARTSECTION{"stuff"}%
...
%ENDSECTION{"stuff"}%
</verbatim>

This will load stuff async'ly and cache it for 6 hours (given that $Foswiki::cfg{Cache}{Enabled} = 1;)

-- MichaelDaum - 02 Jul 2012

Michael - am I right in presuming that you're talking of server side cache, whereas i'm talking about client side cache?

tbh, I'd like to get away from using embedded URLs in wiki parameters - this is one of those places.

-- SvenDowideit - 03 Jul 2012

Client side caching doesn't come without its risks. That's because the client is rather decoupled from what happens on the server, of course. When you cache on the client side too aggressively, will you suffer from caching artifacts where users repeatedly see information long outdated by updates on the server.This is especially critical on wikis where you have much more interaction of users and pages than on a static website. There really isn't much you can do about this trade-off.

That aside, the jqLoader construction above is a nice solution to delay things that are normally integrated into a page using %INCLUDEs: instead of the server to construct all of the page in one chunk, the client fetches the raw skeleton and then patches in the more expensive parts later on. This is the main use case for the jqLoader. It reduces load time of the skeleton page while caching patches individually, a very common situation on dashboards for instance.

But in how far does adding a topic parameter to jqLoader leverage client side caching?

-- MichaelDaum - 03 Jul 2012

ItemTemplate edit

Summary add topic: param to jqLoader -
ReportedBy SvenDowideit
Codebase trunk
SVN Range
AppliesTo Engine
Component JQueryPlugin
Priority Enhancement
CurrentState New
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r4 - 03 Jul 2012, MichaelDaum
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads