{"id":22394225,"url":"https://github.com/alexanderomara/jquery-ajaxreadystate","last_synced_at":"2026-02-27T21:44:50.288Z","repository":{"id":26370769,"uuid":"29820005","full_name":"AlexanderOMara/jquery-ajaxreadystate","owner":"AlexanderOMara","description":"jQuery ajaxreadystate plugin","archived":false,"fork":false,"pushed_at":"2015-03-26T23:49:45.000Z","size":172,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-05T10:03:50.936Z","etag":null,"topics":["ajax","javascript","jquery","jquery-ajaxreadystate"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexanderOMara.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-25T16:05:44.000Z","updated_at":"2023-01-25T00:06:55.000Z","dependencies_parsed_at":"2022-08-28T12:50:13.796Z","dependency_job_id":null,"html_url":"https://github.com/AlexanderOMara/jquery-ajaxreadystate","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/AlexanderOMara/jquery-ajaxreadystate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderOMara%2Fjquery-ajaxreadystate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderOMara%2Fjquery-ajaxreadystate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderOMara%2Fjquery-ajaxreadystate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderOMara%2Fjquery-ajaxreadystate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexanderOMara","download_url":"https://codeload.github.com/AlexanderOMara/jquery-ajaxreadystate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderOMara%2Fjquery-ajaxreadystate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268024599,"owners_count":24183149,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","javascript","jquery","jquery-ajaxreadystate"],"created_at":"2024-12-05T05:09:27.592Z","updated_at":"2026-02-27T21:44:50.220Z","avatar_url":"https://github.com/AlexanderOMara.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"jquery-ajaxreadystate\n=====================\n\njQuery ajaxreadystate plugin\n\nOverview\n--------\n\nThe jQuery AJAX implementation is somewhat limited in that it does not provide a way of responding to the `readystatechange` events that fire during the AJAX request. The `jQuery.ajax` API documentation actually states the following.\n\n\u003e No `onreadystatechange` mechanism is provided, however, since `done`, `fail`, `always`, and `statusCode` cover all conceivable requirements.\n\nWhile this statement is true for most use cases, what if you want to access the response headers or status code before the entire request completes, or access the response body as it streams?\n\nEvidently jQuery does not provide this functionality due to browser compatibility issues, so this plugin adds this extra functionality for browsers that support these features (see compatibility notes below).\n\nThis plugin works by adding a new method `jQuery.ajaxreadystate` method, which acts as a wrapper for `jQuery.ajax`, extending the functionality and updating the `jqXHR` object to remove the limitations and update properties as the `readyState` changes.\n\nUsage\n-----\n\nYou use `jQuery.ajaxreadystate` just like you would `jQuery.ajax`, except you have one extra method you can define, the `readystate` method.\n\n```js\njQuery.ajaxreadystate({\n\treadystate: function(jqXHR, readyState) {\n\t\t\n\t}\n});\n```\n\nThis method will fire every time the request fires a `readystatechange` event, and will pass in the updated `jqXHR` object, and the current `readyState`.\n\nDownload\n--------\n\nYou can download the latest stable and minified release from the releases section of this repository. Alternately you can clone the repository download from a package managers.\n\nBrowser Compatibility\n---------------------\n\n###Fully Supported\n\nThe following browsers are fully supported.\n\n- Firefox 3+\n- Chrome 14+\n- Internet Explorer 10+\n- Safari 5+\n- iOS Safari 4+\n- Opera 15+\n\n###Partially Supported\n\nThe following browsers are partially supported due to technical limitations of the browser itself. Compatibility issues are noted.\n\n- Internet Explorer 9\n  - `responseText` is not available until `readyState` is `4`.\n  - Only fires one `readystatechange` event for `readyState` `3` at some point during the transfer.\n- Internet Explorer 7-8\n  - `responseText` is not available until `readyState` is `4`.\n  - `status` and `statusText` are not updated until `readyState` is `4`.\n  - `getAllResponseHeaders` and `getResponseHeader` return `null` until `readyState` is `4`.\n- Internet Explorer 6\n  - The `readystate` callback is only fired for `readyState` `1`.\n  - `responseText` is not available until `readyState` is `4`.\n  - `status` and `statusText` are not updated until `readyState` is `4`.\n  - `getAllResponseHeaders` and `getResponseHeader` return `null` until `readyState` is `4`.\n- Safari 4\n  - `getAllResponseHeaders` and `getResponseHeader` return `null` until `readyState` is `3`.\n- iOS Safari 3\n  - `getAllResponseHeaders` and `getResponseHeader` return `null` until `readyState` is `3`.\n- Opera 11.6-12.16\n  - Only fires one `readystatechange` event for `readyState` `3` at some point during the transfer.\n- Opera 11.1-11.5\n  - `status` and `statusText` are not updated until `readyState` is `3`.\n  - Only fires one `readystatechange` event for `readyState` `3` at some point during the transfer.\n- Opera 10.6\n  - `status` and `statusText` are not updated until `readyState` is `3`.\n  - Only fires one `readystatechange` event for `readyState` `3` at some point during the transfer.\n  - `getAllResponseHeaders` and `getResponseHeader` return `null` until `readyState` is `4`.\n\nOlder browsers than those listed were not tested, but may be partially or fully supported.\n\njQuery Compatibility\n--------------------\n\nThis plugin is compatible with jQuery 1.5+ and jQuery 2.0.0+.\n\nDevelopment\n-----------\n\nTo create a minified build, run this commend from the root directory of this repository.\n\n```bash\n$ npm run build\n```\n\nBugs\n----\n\nIf you find a bug or have compatibility issues not documented above, please open a ticket under issues section for this repository.\n\nLicense\n-------\n\nSee LICENSE.txt\n\nIf this license does not work for you, feel free to contact me.\n\nDonations\n---------\nIf you find my software useful, please consider making a modest donation on my website at [alexomara.com](http://alexomara.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderomara%2Fjquery-ajaxreadystate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexanderomara%2Fjquery-ajaxreadystate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderomara%2Fjquery-ajaxreadystate/lists"}