{"id":18034346,"url":"https://github.com/johansatge/jquery-notready","last_synced_at":"2026-05-02T04:37:58.792Z","repository":{"id":15347854,"uuid":"18078587","full_name":"johansatge/jquery-notready","owner":"johansatge","description":"A lightweight script that allows you to make use of jQuery(document).ready before jQuery loads.","archived":false,"fork":false,"pushed_at":"2015-08-17T12:07:20.000Z","size":248,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-05T12:33:50.448Z","etag":null,"topics":["javascript","jquery"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"HelloZeroNet/ZeroNet","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johansatge.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":"2014-03-24T20:58:38.000Z","updated_at":"2016-04-29T16:08:51.000Z","dependencies_parsed_at":"2022-09-01T00:22:26.070Z","dependency_job_id":null,"html_url":"https://github.com/johansatge/jquery-notready","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/johansatge/jquery-notready","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johansatge%2Fjquery-notready","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johansatge%2Fjquery-notready/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johansatge%2Fjquery-notready/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johansatge%2Fjquery-notready/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johansatge","download_url":"https://codeload.github.com/johansatge/jquery-notready/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johansatge%2Fjquery-notready/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32523428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"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":["javascript","jquery"],"created_at":"2024-10-30T11:10:48.332Z","updated_at":"2026-05-02T04:37:58.779Z","avatar_url":"https://github.com/johansatge.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jQuery notReady\n\nA lightweight script that allows you to make use of `jQuery(document).ready` before jQuery loads.\n\n---\n\n* [Why](#why)\n* [Installation](#installation)\n* [Usage](#usage)\n* [Changelog](#changelog)\n* [License](#license)\n\n## Why\n\nLet's consider that your webpage needs to call jQuery stuff when the DOM is ready, by using this common syntax:\n\n```html\n\u003cdiv class=\"my-div\"\u003e\u003c/div\u003e\n\u003cscript\u003e\n    jQuery(document).ready(function($)\n    {\n        $('.my-div').jQueryStuff();\n    });\n\u003c/script\u003e\n```\n\nThis code needs jQuery to be loaded first. This is a problem as JS files should be loaded at the bottom of the page.\n\nThe `jquery.notready` script solves it by declaring a fake jQuery object that you can use everywhere on the page, and that will be replaced by the real one when it is propery loaded.\n\n*Using jQuery calls in the HTML documents may not be a good thing, but in some cases it has to be done this way - this tool provides a workaround for those specific cases.*\n\n## Installation\n\n```bash\nbower install jquery.notready\n```\n\nAlternatively, you may manually install the `jquery.notready.min.js` and `jquery.ready.min.js` scripts wherever you want in your project.\n\nThen, call the first script in `\u003chead\u003e`:\n\n```html\n  \u003cscript src=\"src/jquery.notready.min.js\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n```\n\nAnd the second one next to the jQuery call, at the bottom of the page:\n\n```html\n    \u003cscript src=\"src/vendor/jquery/dist/jquery.min.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"src/jquery.ready.min.js\"\u003e\u003c/script\u003e\n    \u003c!-- [...] --\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Usage\n\nJust make usual jQuery calls on the page.\nFor now, the following syntaxes are supported:\n\n```javascript\njQuery(document).bind(\"ready\", callback);\n```\n\n```javascript\njQuery(document).ready(callback);\n```\n\n```javascript\njQuery().ready(callback);\n```\n\n```javascript\njQuery(callback);\n```\n\nPlease note that `$` is not supported to avoid compatibility issues.\n\n## Changelog\n\n| Version | Date | Notes |\n| --- | --- | --- |\n| `0.1` | July 26th, 2014 | Initial version |\n\n## License\n\nThis project is released under the [MIT License](LICENSE).\n\n## Credits\n\n* [Sam Affron](http://samsaffron.com/archive/2012/02/17/stop-paying-your-jquery-tax)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohansatge%2Fjquery-notready","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohansatge%2Fjquery-notready","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohansatge%2Fjquery-notready/lists"}