filamentgroup/Ajax-Include-Pattern — pull request #15 by zigotica (2012-11-27 14:45:46+00:00)
Title: added onOrientationChange / onManualCall options and test page

this "fixes" (improves at least) #6
as explained in readme:

onOrientationChange: when set to false it avoids Ajax call when a media query does not evaluate to true onload but later onOrientationChange. This can save bandwith and also avoid confusion when user has passed scrolling area of elements containing ajaxInclude triggers.

onManualCall: to allow downloading content in previous situations or simply when a media query is not met (ie. smaller displays), we can do so manually on click. Script detects links inside ajaxInclude elements and prevents further action since we want to get content via ajax if possible.