{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"examples","path":"examples","contentType":"directory"},{"name":"src","path":"src","contentType":"directory"},{"name":"test","path":"test","contentType":"directory"},{"name":".editorconfig","path":".editorconfig","contentType":"file"},{"name":".eslintrc.json","path":".eslintrc.json","contentType":"file"},{"name":".gitbook.yaml","path":".gitbook.yaml","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"CHANGELOG.md","path":"CHANGELOG.md","contentType":"file"},{"name":"CODE_OF_CONDUCT.md","path":"CODE_OF_CONDUCT.md","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"UPGRADE.md","path":"UPGRADE.md","contentType":"file"},{"name":"cypress.json","path":"cypress.json","contentType":"file"},{"name":"package-lock.json","path":"package-lock.json","contentType":"file"},{"name":"package.json","path":"package.json","contentType":"file"},{"name":"rollup.config.js","path":"rollup.config.js","contentType":"file"}],"totalCount":20}},"fileTreeProcessingTime":8.061938,"foldersToFetch":[],"repo":{"id":1839648,"defaultBranch":"master","name":"infinite-ajax-scroll","ownerLogin":"webcreate","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2011-06-02T22:01:41.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/826317?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"master","listCacheKey":"v0:1689567016.0","canEdit":false,"refType":"branch","currentOid":"a466bbc4ca09b8f0d2cca3163eb84e623e34c429"},"path":"UPGRADE.md","currentUser":null,"blob":{"rawLines":null,"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/webcreate/infinite-ajax-scroll/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"UPGRADE.md","displayUrl":"https://github.com/webcreate/infinite-ajax-scroll/blob/master/UPGRADE.md?raw=true","headerInfo":{"blobSize":"4.11 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"7144ce7","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fwebcreate%2Finfinite-ajax-scroll%2Fblob%2Fmaster%2FUPGRADE.md","isCSV":false,"isRichtext":true,"toc":[{"level":1,"text":"Upgrade from 3.0.x to 3.1.0","anchor":"upgrade-from-30x-to-310","htmlText":"Upgrade from 3.0.x to 3.1.0"},{"level":1,"text":"Upgrade from 2.3.x to 3.0","anchor":"upgrade-from-23x-to-30","htmlText":"Upgrade from 2.3.x to 3.0"},{"level":3,"text":"Installation","anchor":"installation","htmlText":"Installation"},{"level":3,"text":"Initialisation","anchor":"initialisation","htmlText":"Initialisation"},{"level":3,"text":"Extensions","anchor":"extensions","htmlText":"Extensions"},{"level":3,"text":"Options","anchor":"options","htmlText":"Options"},{"level":3,"text":"Methods","anchor":"methods","htmlText":"Methods"},{"level":3,"text":"Events","anchor":"events","htmlText":"Events"},{"level":1,"text":"Upgrade from 2.2 to 2.3","anchor":"upgrade-from-22-to-23","htmlText":"Upgrade from 2.2 to 2.3"},{"level":1,"text":"Upgrade from 2.1 to 2.2","anchor":"upgrade-from-21-to-22","htmlText":"Upgrade from 2.1 to 2.2"},{"level":1,"text":"Upgrade from 2.0 to 2.1","anchor":"upgrade-from-20-to-21","htmlText":"Upgrade from 2.0 to 2.1"},{"level":1,"text":"Upgrade from 1.x to 2.0","anchor":"upgrade-from-1x-to-20","htmlText":"Upgrade from 1.x to 2.0"}],"lineInfo":{"truncatedLoc":"154","truncatedSloc":"109"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Markdown","languageID":222,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/webcreate/infinite-ajax-scroll/blob/master/UPGRADE.md","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/webcreate/infinite-ajax-scroll/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/webcreate/infinite-ajax-scroll/raw/master/UPGRADE.md","renderImageOrRaw":false,"richText":"

Upgrade from 3.0.x to 3.1.0

\n

Version 3.1.0 is backwards-compatible with 3.0.x.

\n

Upgrade from 2.3.x to 3.0

\n

Version 3 is a complete overhaul of Infinite Ajax Scroll.

\n

Most important changes:

\n\n

Installation

\n

You can use the CDN version by adding this to the <head> section:

\n
<script src=\"https://unpkg.com/@webcreate/infinite-ajax-scroll@3/dist/infinite-ajax-scroll.min.js\"></script>\n
\n

or install from NPM

\n
$ npm install --save @webcreate/infinite-ajax-scroll
\n

and import into your application

\n
import InfiniteAjaxScroll from '@webcreate/infinite-ajax-scroll';
\n

Initialisation

\n

We no longer depend on jQuery.

\n
var ias = jQuery.ias({\n  container:  '#posts',\n  item:       '.post',\n  pagination: '#pagination',\n  next:       '.next'\n});
\n

becomes

\n
// import if you use the NPM package (not needed if you use CDN)\nimport InfiniteAjaxScroll from '@webcreate/infinite-ajax-scroll';\n\nlet ias = new InfiniteAjaxScroll('#posts', {\n  item: '.post',\n  next: '.next',\n  pagination: '#pagination'\n});
\n

Extensions

\n

Most plugins turned into options. For example the Spinner Extension:

\n
// Add a loader image which is displayed during loading\nias.extension(new IASSpinnerExtension());
\n

becomes

\n
let ias = new InfiniteAjaxScroll('#posts', {\n  //...\n  spinner: '.spinner',\n});
\n

Where .spinner references a html element by class name. You will have to add this element yourself, e.g.

\n
<div class=\"spinner\">loading...</div>\n
\n

Use the documentation to learn how to use the new way of using these features:

\n\n

Other extensions are now build-in as events:

\n\n

Finally, the History Extension is dropped entirely.

\n

Options

\n\n

Methods

\n\n

Events

\n\n

Upgrade from 2.2 to 2.3

\n\n

Upgrade from 2.1 to 2.2

\n

Specific changes for extensions.

\n\n

Upgrade from 2.0 to 2.1

\n\n

Upgrade from 1.x to 2.0

\n\n
","renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":2,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"Upgrade from 3.0.x to 3.1.0","kind":"section_1","ident_start":0,"ident_end":27,"extent_start":0,"extent_end":56,"fully_qualified_name":"Upgrade from 3.0.x to 3.1.0","ident_utf16":{"start":{"line_number":0,"utf16_col":0},"end":{"line_number":0,"utf16_col":27}},"extent_utf16":{"start":{"line_number":0,"utf16_col":0},"end":{"line_number":2,"utf16_col":0}}},{"name":"Upgrade from 2.3.x to 3.0","kind":"section_1","ident_start":108,"ident_end":133,"extent_start":108,"extent_end":160,"fully_qualified_name":"Upgrade from 2.3.x to 3.0","ident_utf16":{"start":{"line_number":5,"utf16_col":0},"end":{"line_number":5,"utf16_col":25}},"extent_utf16":{"start":{"line_number":5,"utf16_col":0},"end":{"line_number":7,"utf16_col":0}}},{"name":"Installation","kind":"section_3","ident_start":335,"ident_end":347,"extent_start":331,"extent_end":740,"fully_qualified_name":"Installation","ident_utf16":{"start":{"line_number":16,"utf16_col":4},"end":{"line_number":16,"utf16_col":16}},"extent_utf16":{"start":{"line_number":16,"utf16_col":0},"end":{"line_number":36,"utf16_col":0}}},{"name":"Initialisation","kind":"section_3","ident_start":744,"ident_end":758,"extent_start":740,"extent_end":1199,"fully_qualified_name":"Initialisation","ident_utf16":{"start":{"line_number":36,"utf16_col":4},"end":{"line_number":36,"utf16_col":18}},"extent_utf16":{"start":{"line_number":36,"utf16_col":0},"end":{"line_number":62,"utf16_col":0}}},{"name":"Extensions","kind":"section_3","ident_start":1203,"ident_end":1213,"extent_start":1199,"extent_end":2096,"fully_qualified_name":"Extensions","ident_utf16":{"start":{"line_number":62,"utf16_col":4},"end":{"line_number":62,"utf16_col":14}},"extent_utf16":{"start":{"line_number":62,"utf16_col":0},"end":{"line_number":98,"utf16_col":0}}},{"name":"Options","kind":"section_3","ident_start":2100,"ident_end":2107,"extent_start":2096,"extent_end":2255,"fully_qualified_name":"Options","ident_utf16":{"start":{"line_number":98,"utf16_col":4},"end":{"line_number":98,"utf16_col":11}},"extent_utf16":{"start":{"line_number":98,"utf16_col":0},"end":{"line_number":104,"utf16_col":0}}},{"name":"Methods","kind":"section_3","ident_start":2259,"ident_end":2266,"extent_start":2255,"extent_end":2506,"fully_qualified_name":"Methods","ident_utf16":{"start":{"line_number":104,"utf16_col":4},"end":{"line_number":104,"utf16_col":11}},"extent_utf16":{"start":{"line_number":104,"utf16_col":0},"end":{"line_number":112,"utf16_col":0}}},{"name":"Events","kind":"section_3","ident_start":2510,"ident_end":2516,"extent_start":2506,"extent_end":4213,"fully_qualified_name":"Events","ident_utf16":{"start":{"line_number":112,"utf16_col":4},"end":{"line_number":112,"utf16_col":10}},"extent_utf16":{"start":{"line_number":112,"utf16_col":0},"end":{"line_number":154,"utf16_col":0}}},{"name":"Upgrade from 2.2 to 2.3","kind":"section_1","ident_start":2661,"ident_end":2684,"extent_start":2661,"extent_end":2709,"fully_qualified_name":"Upgrade from 2.2 to 2.3","ident_utf16":{"start":{"line_number":119,"utf16_col":0},"end":{"line_number":119,"utf16_col":23}},"extent_utf16":{"start":{"line_number":119,"utf16_col":0},"end":{"line_number":121,"utf16_col":0}}},{"name":"Upgrade from 2.1 to 2.2","kind":"section_1","ident_start":2820,"ident_end":2843,"extent_start":2820,"extent_end":2868,"fully_qualified_name":"Upgrade from 2.1 to 2.2","ident_utf16":{"start":{"line_number":125,"utf16_col":0},"end":{"line_number":125,"utf16_col":23}},"extent_utf16":{"start":{"line_number":125,"utf16_col":0},"end":{"line_number":127,"utf16_col":0}}},{"name":"Upgrade from 2.0 to 2.1","kind":"section_1","ident_start":3032,"ident_end":3055,"extent_start":3032,"extent_end":3080,"fully_qualified_name":"Upgrade from 2.0 to 2.1","ident_utf16":{"start":{"line_number":133,"utf16_col":0},"end":{"line_number":133,"utf16_col":23}},"extent_utf16":{"start":{"line_number":133,"utf16_col":0},"end":{"line_number":135,"utf16_col":0}}},{"name":"Upgrade from 1.x to 2.0","kind":"section_1","ident_start":3250,"ident_end":3273,"extent_start":3250,"extent_end":3298,"fully_qualified_name":"Upgrade from 1.x to 2.0","ident_utf16":{"start":{"line_number":139,"utf16_col":0},"end":{"line_number":139,"utf16_col":23}},"extent_utf16":{"start":{"line_number":139,"utf16_col":0},"end":{"line_number":141,"utf16_col":0}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"csrf_tokens":{"/webcreate/infinite-ajax-scroll/branches":{"post":"_X11xaXCaV9Wrl2rks2xgfGV5RowHohidW0iZtK6jtFw5Rf2ccdVfCYk87B70KZOQoNEnLvpGbxyt8BSIEYflA"},"/repos/preferences":{"post":"uPArFA449iXtX9JKOMZjzCUAtc4OaehOevj5bJIBW0v76KeC07l2n5i8vNtnnFE9ALnweBwINazqY11V__6-0Q"}}},"title":"infinite-ajax-scroll/UPGRADE.md at master ยท webcreate/infinite-ajax-scroll"}