{"id":15015842,"url":"https://github.com/vectart/ember-cli-pace","last_synced_at":"2025-04-09T21:19:40.782Z","repository":{"id":29961895,"uuid":"33508691","full_name":"vectart/ember-cli-pace","owner":"vectart","description":"Pace.js load progress bar for Ember apps, incl. Flash-like initial script lazy loading","archived":false,"fork":false,"pushed_at":"2020-06-05T07:24:49.000Z","size":199,"stargazers_count":123,"open_issues_count":13,"forks_count":31,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-02T14:03:54.913Z","etag":null,"topics":["ember","ember-apps","ember-cli","ember-cli-pace","javascript","pace","spinner"],"latest_commit_sha":null,"homepage":"http://vectart.github.io/ember-cli-pace/","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/vectart.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}},"created_at":"2015-04-06T22:15:25.000Z","updated_at":"2025-01-17T18:46:06.000Z","dependencies_parsed_at":"2022-08-24T15:41:57.398Z","dependency_job_id":null,"html_url":"https://github.com/vectart/ember-cli-pace","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vectart%2Fember-cli-pace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vectart%2Fember-cli-pace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vectart%2Fember-cli-pace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vectart%2Fember-cli-pace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vectart","download_url":"https://codeload.github.com/vectart/ember-cli-pace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247792886,"owners_count":20996899,"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":["ember","ember-apps","ember-cli","ember-cli-pace","javascript","pace","spinner"],"created_at":"2024-09-24T19:48:02.524Z","updated_at":"2025-04-09T21:19:40.752Z","avatar_url":"https://github.com/vectart.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Pace.js](http://github.hubspot.com/pace/docs/welcome/) load progress bar for Ember apps, incl. initial scripts lazy loading\n\n\u003cimg src=\"https://www.dropbox.com/s/baoswhof2u2wbhd/Screenshot%202015-04-07%2011.30.43.png?dl=1\" width=\"240\" /\u003e\n\n[![Downloads](http://img.shields.io/npm/dm/ember-cli-pace.svg?style=flat-square)](https://npmjs.org/package/ember-cli-pace) [![Code Climate](https://img.shields.io/codeclimate/github/vectart/ember-cli-pace.svg?style=flat-square)](https://codeclimate.com/github/vectart/ember-cli-pace) [![Ember Observer Score](http://emberobserver.com/badges/ember-cli-pace.svg?style=flat-square)](http://emberobserver.com/addons/ember-cli-pace) [![David Dependencies](https://david-dm.org/vectart/ember-cli-pace.svg?style=flat-square)](https://david-dm.org/vectart/ember-cli-pace)\n# [Demo \u0026#10140;](http://vectart.github.io/ember-cli-pace/)\n\n## Installation\n\nUsing latest Ember-cli, run the command:\n\n`ember install ember-cli-pace`\n\nor for older versions:\n\n`npm install ember-cli-pace \u0026\u0026 ember g pace`\n\n## Flash-like initial script loading\n\nDue to application scripts loading may take some time (especially, using mobile networks or ADSL), Ember-cli-pace can load them asynchronously displaying correctly computed progress bar. To enable that feature, just change `src` attribute to `pace-src` in your `app.html`.\n\n```html\n\u003cscript pace-src=\"assets/vendor.js\"\u003e\u003c/script\u003e\n\u003cscript pace-src=\"assets/app.js\"\u003e\u003c/script\u003e\n```\n\nTherefore, the scripts will be loaded via AJAX, which allows to [compute loaded vs total bytes ratio](https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#Monitoring_progress). If your scripts are located on separate host, please note CORS policy.\n\n## Configuration\n\nAll options, excluding `color` and `theme` related to the addon, are documented on [http://github.hubspot.com/pace/](http://github.hubspot.com/pace/#configuration).\n\n```javascript\nvar ENV = {\n  pace: {\n  \n    // addon-specific options to configure theme\n    theme: 'minimal',\n    color: 'blue',\n    \n    // pace-specific options\n    // learn more on http://github.hubspot.com/pace/#configuration\n    //           and https://github.com/HubSpot/pace/blob/master/pace.coffee#L1-L72\n    catchupTime: 50,\n    initialRate: .01,\n    minTime: 100,\n    ghostTime: 50,\n    maxProgressPerFrame: 20,\n    easeFactor: 1.25,\n    startOnPageLoad: true,\n    restartOnPushState: true,\n    restartOnRequestAfter: 500,\n    target: 'body',\n    elements: {\n      checkInterval: 100,\n      selectors: ['body', '.ember-view']\n    },\n    eventLag: {\n      minSamples: 10,\n      sampleCount: 3,\n      lagThreshold: 3\n    },\n    ajax: {\n      trackMethods: ['GET', 'POST', 'DELETE', 'OPTIONS'],\n      trackWebSockets: true,\n      ignoreURLs: []\n    }\n  }\n};\n```\n\n## Themes\n\nThis addon is bundled with Material spinner theme, which is set by default. See it on [demo page](http://vectart.github.io/ember-cli-pace/).\n\nPace.js originally provides [14 progress bar themes](https://github.com/HubSpot/pace/tree/master/themes/black) in [10 colors](https://github.com/HubSpot/pace/tree/master/themes). See the progress bars and spinners in action: http://github.hubspot.com/pace/docs/welcome/\n\n![Pace.js themes](https://www.dropbox.com/s/d4ladjwfrqq6ehv/Screenshot%202015-04-07%2011.54.48.png?dl=1)\n\n## Pace API\n\nMore details on Pace events, methods and configuration could be found on http://github.hubspot.com/pace/\n\n## Developing ember-cli-pace\n\n* `git clone` this repository\n* `npm install`\n* `bower install`\n* `ember server`\n* Visit your app at http://localhost:4200.\n\nFor more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvectart%2Fember-cli-pace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvectart%2Fember-cli-pace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvectart%2Fember-cli-pace/lists"}