{"id":22859410,"url":"https://github.com/yohn/dynamicpageloader","last_synced_at":"2025-10-25T14:41:46.813Z","repository":{"id":265961951,"uuid":"896978746","full_name":"Yohn/DynamicPageLoader","owner":"Yohn","description":"Vanilla Javascript to dynamically load pages without refreshing","archived":false,"fork":false,"pushed_at":"2024-12-02T00:24:03.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T12:48:01.254Z","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/Yohn.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":"2024-12-01T19:08:53.000Z","updated_at":"2024-12-02T10:02:10.000Z","dependencies_parsed_at":"2025-02-06T12:41:39.425Z","dependency_job_id":"8e8de8aa-0a1a-444c-80b7-8e66f7566b17","html_url":"https://github.com/Yohn/DynamicPageLoader","commit_stats":null,"previous_names":["yohn/dynamicpageloader"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yohn%2FDynamicPageLoader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yohn%2FDynamicPageLoader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yohn%2FDynamicPageLoader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yohn%2FDynamicPageLoader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yohn","download_url":"https://codeload.github.com/Yohn/DynamicPageLoader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246436340,"owners_count":20776995,"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-13T09:06:53.052Z","updated_at":"2025-10-25T14:41:46.752Z","avatar_url":"https://github.com/Yohn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DynamicPageLoader\nVanilla Javascript to dynamically load pages without refreshing\n\n## Info\nThe `\u003ctitle\u003e`, `\u003cmeta[name=\"description\"]`, and `\u003cmeta[name=\"keywords\"]` atributes will be grabbed from the page we're loading from and added to the page we're on.\nThe back button will work as expected.\n\u003e [!NOTE]\n\u003e Ensure your page you're loading has the same id element that you define for `fadeElement` value. When the page is grabbed this class finds the same id element name and loaded it into that id on the page that is loaded already.\n\n## Initalizing \n```js\nconst loader = new DynamicPageLoader({\n\tfadeElement: '#content', // the element that gets updated. This ID needs to be in the current page, and the page thats being loaded or nothing will show.\n\tloadingElement: '#loading', // the loader icon\n\tlinkClass: 'dynamic-link', // when a link has this class name it will load dynamically when clicked.\n\tdontReload: [ // do reload these javascript files\n\t\t'https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js',\n\t\twindow.location.origin+'/assets/js/global.js',\n\t],\n\tdontReloadCSS: [ // dont reload these css files\n\t\t'https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css',\n\t\twindow.location.origin+'/assets/css/global.css',\n\t],\n\tdontReloadPreload: [ // dont reload these reloaded files\n\t\twindow.location.origin+'/assets/fonts/Redressed/Redressed-3X6y.woff2',\n\t\twindow.location.origin+'/assets/fonts/Redressed/Redressed-3X6y.woff',\n\t\twindow.location.origin+'/assets/fonts/Redressed/Redressed-3X6y.ttf',\n\t]\n});\n```\n\n## Load Page\n```js\nloader.loadPage('/some-other-page.html');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyohn%2Fdynamicpageloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyohn%2Fdynamicpageloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyohn%2Fdynamicpageloader/lists"}