{"id":17303256,"url":"https://github.com/gregjopa/dynamic-script-loading-demo","last_synced_at":"2025-09-13T13:33:42.918Z","repository":{"id":139510624,"uuid":"287577350","full_name":"gregjopa/dynamic-script-loading-demo","owner":"gregjopa","description":"Test out how the async and defer attributes work when doing dynamic script loading","archived":false,"fork":false,"pushed_at":"2020-08-14T16:29:17.000Z","size":379,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T04:31:37.968Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gregjopa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-08-14T16:28:32.000Z","updated_at":"2023-03-09T01:13:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3af4d27-8dd6-4059-b1bf-d79b81a1b51f","html_url":"https://github.com/gregjopa/dynamic-script-loading-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregjopa%2Fdynamic-script-loading-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregjopa%2Fdynamic-script-loading-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregjopa%2Fdynamic-script-loading-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregjopa%2Fdynamic-script-loading-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregjopa","download_url":"https://codeload.github.com/gregjopa/dynamic-script-loading-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245749858,"owners_count":20666084,"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-10-15T11:49:49.442Z","updated_at":"2025-03-26T22:44:59.078Z","avatar_url":"https://github.com/gregjopa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dynamic Script Loading Demo\n\nThe purpose of this repo is to test out how the `async` and `defer` attributes work when doing dynamic script loading.\n\n## Getting Started\n\n* Clone the repo\n* Install dependencies with `npm install`\n* Run server with `npm start` and go here:\n[http://localhost:3000/](http://localhost:3000/)\n\n\n## What to look for in the demos\n\nThere are two things to look for in the demos:\n1. To measure script loading, check the Dev Tools network tab.\n\n\u003cimg src=\"network-tab-screenshot.png\" /\u003e\n\n2. To measure script execution, check the Dev Tools console.\n\n\u003cimg src=\"console-output-screenshot.png\" /\u003e\n\n## Does defer work with dynamic script loading?\n\nNo, I don't believe so. I've tested these demos in Chrome and Firefox and defer/async don't seem to change behavior of the dynamically loaded scripts.\nThere may be a problem with these demos or something I'm not understanding. Feedback welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregjopa%2Fdynamic-script-loading-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregjopa%2Fdynamic-script-loading-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregjopa%2Fdynamic-script-loading-demo/lists"}