{"id":22105587,"url":"https://github.com/btmpl/yaasync","last_synced_at":"2025-07-09T20:06:49.127Z","repository":{"id":144083083,"uuid":"45702693","full_name":"BTMPL/yaasync","owner":"BTMPL","description":"Yet Another Async Loader","archived":false,"fork":false,"pushed_at":"2015-11-09T05:18:21.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T02:47:40.866Z","etag":null,"topics":[],"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/BTMPL.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-11-06T19:28:05.000Z","updated_at":"2015-11-06T19:32:18.000Z","dependencies_parsed_at":"2023-03-21T12:29:31.054Z","dependency_job_id":null,"html_url":"https://github.com/BTMPL/yaasync","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BTMPL/yaasync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BTMPL%2Fyaasync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BTMPL%2Fyaasync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BTMPL%2Fyaasync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BTMPL%2Fyaasync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BTMPL","download_url":"https://codeload.github.com/BTMPL/yaasync/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BTMPL%2Fyaasync/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264502621,"owners_count":23618658,"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":[],"created_at":"2024-12-01T06:47:32.528Z","updated_at":"2025-07-09T20:06:49.093Z","avatar_url":"https://github.com/BTMPL.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Synopsis\n\nyaasync loader or \"Yet Another Async\" loader is a simple library that will let you load and call your JS synchronically depending on conditions you speciffy. It's a *simple* alternative to using big libraries such as [head.js](http://headjs.com/)\n\n## Code Example\n\nYou need to load yaasync.js synchronically or wrap your binding in window.onload. After you've loaded the library you can make calls to `yaasync.assert`:\n\n    yasstnc.assert(condition, callback)\n    \nexample:\n\n    yaasync.assert('jQuery', function() {\n        jQuery('#log').html('jQuery was succesfully loaded')\n    });\n    \n`condition` can be either an anonymous function (that will evaluate to `true` once the conditions are met) or string containing the variable name. In case you're using the string option, the variable must be globaly visible as `window.variable`\n\n## License\n\nA short snippet describing the license (MIT, Apache, etc.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtmpl%2Fyaasync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbtmpl%2Fyaasync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtmpl%2Fyaasync/lists"}