{"id":20296077,"url":"https://github.com/likerrr/jq-ajax-progress","last_synced_at":"2025-04-08T04:19:02.923Z","repository":{"id":36893815,"uuid":"41200814","full_name":"likerRr/jq-ajax-progress","owner":"likerRr","description":"jQuery plugin that adds support of `progress` promise","archived":false,"fork":false,"pushed_at":"2018-02-04T20:56:09.000Z","size":25,"stargazers_count":62,"open_issues_count":1,"forks_count":28,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-05-29T09:21:14.228Z","etag":null,"topics":["ajax","jquery","jquery-plugin","js","promises"],"latest_commit_sha":null,"homepage":null,"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/likerRr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-22T09:43:12.000Z","updated_at":"2023-11-07T12:40:25.000Z","dependencies_parsed_at":"2022-08-31T04:22:48.282Z","dependency_job_id":null,"html_url":"https://github.com/likerRr/jq-ajax-progress","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likerRr%2Fjq-ajax-progress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likerRr%2Fjq-ajax-progress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likerRr%2Fjq-ajax-progress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likerRr%2Fjq-ajax-progress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/likerRr","download_url":"https://codeload.github.com/likerRr/jq-ajax-progress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247773726,"owners_count":20993639,"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":["ajax","jquery","jquery-plugin","js","promises"],"created_at":"2024-11-14T15:37:06.446Z","updated_at":"2025-04-08T04:19:02.884Z","avatar_url":"https://github.com/likerRr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jQuery Ajax Progress\nLightweight jQuery plugin that adds support of `progress` and `uploadProgress` promises to $.ajax()\n\n# Installation\n\n## npm\n`npm install jq-ajax-progress`\n\n## manually\n`git clone git@github.com:likerRr/jq-ajax-progress.git`\n\n# How to use\n\nInclude `src/jq-ajax-progress.min.js` inside your html after `jQuery` script\n\n## Basic usage\n```javascript\n$.ajax(url, {\n    progress: function(e) {\n      // track downloading\n    },\n    uploadProgress: function(e) {\n      // track uploading\n      // if (e.lengthComputable) {\n      //   var completedPercentage = Math.round((e.loaded * 100) / e.total);\n      //   console.log(completedPercentage);\n      //}\n    }\n  })\n```\n\n## Extended usage\nWhen you have to send a chunked data to client in some cases it would be good to track what part have just received. For this purposes use boolean option `chunking` (`false` by default). If it's set as `true`, then the second parameter in callback function will be a chunk part.\n\nBy default all chunked response contains whole text response that already received and you should manually cut it if you need to do something with parts. One of a possible case when you send big text or media response from server to client and you don't want your client wait for whole response.\n\u003e Keep in mind, that under the hood whole response is being cut from the beginning (from zero index)\n\u003e until last part's occurrence, so big amount of data (theoretically) may cause a performance troubles. But... just keep\n\u003e in mind :)\n\n```javascript\n$.ajax(url, {\n    chunking: true,\n    progress: function(e, part) {\n      console.log(part);\n    }\n  });\n```\n\n# Build\nInstall [node](https://nodejs.org/)\n\nRun `npm install \u0026\u0026 npm run build`\n\nThis will minify library and put it inside `src` folder\n\n# [MIT LICENSE](http://likerrr.mit-license.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flikerrr%2Fjq-ajax-progress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flikerrr%2Fjq-ajax-progress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flikerrr%2Fjq-ajax-progress/lists"}