From 98bebafd8ca0219beb956be9cf689fca73581021 Mon Sep 17 00:00:00 2001 From: Chris Polis Date: Thu, 15 Sep 2011 15:57:41 -0700 Subject: [PATCH] more comments --- pagify.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pagify.js b/pagify.js index 787d9d5..8c321a8 100644 --- a/pagify.js +++ b/pagify.js @@ -23,9 +23,12 @@ var runAfterLoading = function() { self.switchPage = function(page) { page = page || window.location.hash.replace('#',''); - + + // Load page content from cache if(self.settings.cache) { $(self).hide().html(self.pages[page])[self.settings.animation](); + + // Fetch page content } else { $.get(page+'.html', function(content) { $(self).hide().html(content)[self.settings.animation]();