{"id":13453245,"url":"https://github.com/EvandroLG/pageAccelerator","last_synced_at":"2025-03-24T01:31:17.046Z","repository":{"id":57317964,"uuid":"67812960","full_name":"EvandroLG/pageAccelerator","owner":"EvandroLG","description":"A very light solution to load web pages faster","archived":false,"fork":false,"pushed_at":"2024-06-30T10:31:45.000Z","size":45,"stargazers_count":1206,"open_issues_count":4,"forks_count":54,"subscribers_count":39,"default_branch":"master","last_synced_at":"2024-10-29T20:50:26.115Z","etag":null,"topics":["front-end","javascript","performace"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EvandroLG.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-09T16:03:36.000Z","updated_at":"2024-08-08T07:05:24.000Z","dependencies_parsed_at":"2024-11-21T04:02:32.546Z","dependency_job_id":null,"html_url":"https://github.com/EvandroLG/pageAccelerator","commit_stats":null,"previous_names":["easyfood/pageaccelerator"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvandroLG%2FpageAccelerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvandroLG%2FpageAccelerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvandroLG%2FpageAccelerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvandroLG%2FpageAccelerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EvandroLG","download_url":"https://codeload.github.com/EvandroLG/pageAccelerator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245194207,"owners_count":20575724,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["front-end","javascript","performace"],"created_at":"2024-07-31T08:00:36.399Z","updated_at":"2025-03-24T01:31:16.717Z","avatar_url":"https://github.com/EvandroLG.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# pageAccelerator\n[![Build\nStatus](https://travis-ci.org/Easyfood/pageAccelerator.svg?branch=master)](https://travis-ci.org/Easyfood/pageAccelerator)\n[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/evandrolg/pageAccelerator?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![CDNJS](https://img.shields.io/cdnjs/v/page-accelerator.svg)](https://cdnjs.com/libraries/page-accelerator)\n\nA very light solution to load web pages faster.\n\n## Browser Support\n- Google Chrome 5.0+\n- Firefox 4.0+\n- Edge 14+\n- Opera 11.5+\n- Safari 5.0+\n\n** For IE10+ you need to use some [polyfill](https://cdnjs.cloudflare.com/polyfill/) to add support for Promises.\n\n# How does it work?\nIt's an agnostic library that uses ajax and pushState to deliver a faster navigation experience. pageAccelerator is a very light version of [turbolinks](https://github.com/turbolinks/turbolinks) and [pjax](https://github.com/defunkt/jquery-pjax) (our minfied file is just 2.2KB!). Basically what it does is follow every link in your application and each click it loads the page in background and replaces the content correctly, keeping the real datas from body and head, updating the title.\n\n## Installation\nTo install pageAccelerator, execute:\n\n```shell\n  npm install page-accelerator --save\n```\n\nor\n\n```shell\n  bower install page-accelerator --save\n```\n\nOr simply use the minified file from the `dist/` directory.\n\n## How to use?\npageAccelerator doesn't depend on jQuery, Zepto or any other library to work. You need just to include it at the end of your HTML code:\n\n```html\n  \u003cscript src=\"page-accelerator.min.js\"\u003e\u003c/script\u003e\n```\n\nThen you need to call the `pageAccelerator` function, such as the example bellow:\n\n```js\n  pageAccelerator();\n```\n\nJust call it and pageAccelerator was already following the web application links.\n\nFor links that you don't want to be followed, you need simply add `data-pageAccelerator=\"false\"`.\n\n## Parameters\n`pageAccelerator` can also receive an object as a parameter with the following options:\n* **beforeLoading** \u003ccode\u003efunction\u003c/code\u003e: Will be called whenever a new page was requested by a click or the browser back\n* **afterLoading** \u003ccode\u003efunction\u003c/code\u003e: Will be called whenever a new page has been loaded\n\n## Team\npageAccelerator was made with love by a bunch of [awesome contributors](https://github.com/EasyFood/pageAccelerator/graphs/contributors).\n\n## Author\n|[![@evandrolg](https://avatars3.githubusercontent.com/u/444054?v=3\u0026amp;s=96)](https://github.com/evandrolg)|\n|:---:|\n|[@evandrolg](http://www.github.com/evandrolg)|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEvandroLG%2FpageAccelerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEvandroLG%2FpageAccelerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEvandroLG%2FpageAccelerator/lists"}