{"id":26780400,"url":"https://github.com/klich3/loadjs","last_synced_at":"2026-04-28T11:33:48.406Z","repository":{"id":284816122,"uuid":"956163033","full_name":"klich3/loadjs","owner":"klich3","description":"A simple function for asynchronously loading JavaScript files with possibility of callback function","archived":false,"fork":false,"pushed_at":"2025-03-27T19:56:31.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T20:36:59.739Z","etag":null,"topics":["frontend","javascript","jquery","scripts"],"latest_commit_sha":null,"homepage":"","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/klich3.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-27T19:54:44.000Z","updated_at":"2025-03-27T20:06:56.000Z","dependencies_parsed_at":"2025-03-27T20:37:04.694Z","dependency_job_id":"c5925b96-47db-4ab4-abdb-6fb444f27134","html_url":"https://github.com/klich3/loadjs","commit_stats":null,"previous_names":["klich3/loadjs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/klich3/loadjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klich3%2Floadjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klich3%2Floadjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klich3%2Floadjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klich3%2Floadjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klich3","download_url":"https://codeload.github.com/klich3/loadjs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klich3%2Floadjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32379318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["frontend","javascript","jquery","scripts"],"created_at":"2025-03-29T07:16:27.479Z","updated_at":"2026-04-28T11:33:48.368Z","avatar_url":"https://github.com/klich3.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"loadJS\n======\n\nA simple function for asynchronously loading JavaScript files with possibility of callback function\n\n## Usage\n\nPlace the [`loadJS` function] inline in the `head` of your page (it can also be included in an external JavaScript file if preferable).\n\nThen call it by passing it a JavaScript URL:\n\n``` html\n\u003chead\u003e\n...\n\n\u003cscript type=\"text/javascript\"\u003e\n\tvar jsToLoad = {\n\t\tpath:'js/', //path to js folder\n\t\titems:[\n\t\t{\n\t\t\tfile:'jquery-1.11.1.js' //file to load\n\t\t}, {\n\t\t\tfile:'jquery.uilang.js',\n\t\t\tcallback:function(){\n\t\t\t\t//callback function\n\t\t\t\tconsole.log('callback');\n\t\t\t}\n\t\t}]\n\t};\n\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"load.js\"\u003e\u003c/script\u003e\n\n...\n\u003c/head\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklich3%2Floadjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklich3%2Floadjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklich3%2Floadjs/lists"}