Loading next page in cache?

Permalink Browser Info Environment
I suspect this is a long shot, but I am using your addon to allow users to scroll from one page to the next in a series pages, but just loading the contents of the Main block since that is the only content that changes on the page.

Do you know of a relatively easy way to load the next page into cache so it loads faster when someone goes onto the next page? (The pages are a series of sequential video tutorials so they will almost always be done in a series as such).

Second question is what you charge hourly and what your availability for custom C5 work is? You could send me a private message on that if you like.

Thanks,

Type: Discussion
Status: New
uswebdesigner
View Replies: View Best Answer
Tony replied on at Permalink Best Answer Reply
Tony
there's nothing built into to the package to allow doing this by default. That said, the rapid paging block does already cache pages that have already been previously loaded, and with a little work you could probably use this existing functionality to get it to do what you want if you're good with javascript.

1) create a new list of links to those pages you want to preload.

2) create a new rapid paging rule that is applied to each of those pages, and set the target to some other element on the page.

3) set both that new list of links and *the parent* of that target element to display:none so that neither affects the look of the page

4) this is the hard part: trigger click() events on each of those links, but do it in a way where each successive click event only loads after the previous one has completed loading, firing it within that the rapid_page_load event:

$(document).bind('rapid_page_load', function(e, data) {
triggerNextCachingLinkClick();
});

Best of luck
uswebdesigner replied on at Permalink Reply
uswebdesigner
Thanks Tony,

I appreciate the thorough support with this. That would unfortunately be beyond my skill level, but I know you did not know that.

I am not sure how far you are willing to go to help me with this addon working but it is inconsistent in working - that is, sometimes it works and sometimes not. Not sure why. I will PM you and give you access if you are willing to see for yourself and offer feedback. And I respect your time with it.
Tony replied on at Permalink Reply
Tony
yeah, will be happy to help you configure it. can you please create a support ticket here with lots of detail on what's happening:
http://www.concrete5.org/marketplace/addons/rapid-ajax-paging/suppo...
uswebdesigner replied on at Permalink Reply
uswebdesigner
Thanks. Because I wanted to give you access to the site, I did not want to put those details into a public support system - so I sent you a private message. Let me know if there is some other way to do that, that I do not know about.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.