{"id":16760272,"url":"https://github.com/ryanve/templace","last_synced_at":"2025-06-26T15:34:29.216Z","repository":{"id":32437100,"uuid":"133757083","full_name":"ryanve/templace","owner":"ryanve","description":"HTML template tag progressive content loader with minimal JavaScript","archived":false,"fork":false,"pushed_at":"2021-11-12T04:21:26.000Z","size":39,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-21T22:51:30.541Z","etag":null,"topics":["dom","javascript","progressive-enhancement","template"],"latest_commit_sha":null,"homepage":"https://ryanve.github.io/templace/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanve.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":"2018-05-17T04:05:40.000Z","updated_at":"2023-08-08T21:02:22.000Z","dependencies_parsed_at":"2022-08-07T17:30:36.455Z","dependency_job_id":null,"html_url":"https://github.com/ryanve/templace","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ryanve/templace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Ftemplace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Ftemplace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Ftemplace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Ftemplace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanve","download_url":"https://codeload.github.com/ryanve/templace/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Ftemplace/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262095199,"owners_count":23258111,"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":["dom","javascript","progressive-enhancement","template"],"created_at":"2024-10-13T04:22:56.913Z","updated_at":"2025-06-26T15:34:29.172Z","avatar_url":"https://github.com/ryanve.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# templace\nProgressively load template content via JavaScript. Useful for wrapping low-priority heavy content like `iframe` embeds such to load after initial page load and only when JavaScript is enabled. Gracefully degrades to noop.\n\n```\nnpm install templace\n```\n\n## usage\n\n```html\n\u003ctemplate data-templace\u003e\n  \u003ciframe src=\"...\"\u003e\u003c/iframe\u003e\n\u003c/template\u003e\n```\n\n#### Include `script` late in page for best performance benefits\n\n```html\n\u003cscript src=\"templace.js\" async defer\u003e\u003c/script\u003e\n```\n\n#### Templacements happen automagically when the script loads or anytime you invoke the export\n\n```js\ntemplace()\n```\n\n#### Normalize `template` CSS for browsers without support\n\n```css\ntemplate {\n  display: none;\n}\n```\n\n## status\nIt's a simple minimum viable package with more granular features in consideration\n\n## demo\nhttps://ryanve.github.io/templace/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanve%2Ftemplace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanve%2Ftemplace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanve%2Ftemplace/lists"}