{"id":13733382,"url":"https://github.com/nanxstats/shiny-fcp-loader","last_synced_at":"2026-03-05T18:02:06.720Z","repository":{"id":142658957,"uuid":"475976234","full_name":"nanxstats/shiny-fcp-loader","owner":"nanxstats","description":"🚧 Shiny app skeleton with a loading screen that aims to minimize the time to first contentful paint (FCP)","archived":false,"fork":false,"pushed_at":"2023-01-28T10:28:23.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T23:23:30.826Z","etag":null,"topics":["first-contentful-paint","loading-screen","shiny","shiny-apps","shinyjs"],"latest_commit_sha":null,"homepage":"https://nanx.shinyapps.io/shiny-fcp-loader/","language":"R","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/nanxstats.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-03-30T17:06:29.000Z","updated_at":"2025-10-06T09:38:35.000Z","dependencies_parsed_at":"2024-01-27T23:07:18.276Z","dependency_job_id":"d8eddaec-e4e4-43cc-93d5-f54bba6bfc39","html_url":"https://github.com/nanxstats/shiny-fcp-loader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nanxstats/shiny-fcp-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanxstats%2Fshiny-fcp-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanxstats%2Fshiny-fcp-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanxstats%2Fshiny-fcp-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanxstats%2Fshiny-fcp-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanxstats","download_url":"https://codeload.github.com/nanxstats/shiny-fcp-loader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanxstats%2Fshiny-fcp-loader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30141293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T16:58:46.102Z","status":"ssl_error","status_checked_at":"2026-03-05T16:58:45.706Z","response_time":93,"last_error":"SSL_read: 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":["first-contentful-paint","loading-screen","shiny","shiny-apps","shinyjs"],"created_at":"2024-08-03T03:00:42.157Z","updated_at":"2026-03-05T18:02:06.686Z","avatar_url":"https://github.com/nanxstats.png","language":"R","funding_links":[],"categories":["R","UI Components"],"sub_categories":["Loader"],"readme":"# shiny-fcp-loader\n\nShiny app skeleton with a loading screen that aims to minimize the time\nto [first contentful paint (FCP)](https://web.dev/fcp/).\n\nDemo: \u003chttps://nanx.shinyapps.io/shiny-fcp-loader/\u003e\n\nBlog post: \u003chttps://nanx.me/blog/post/shiny-fcp-loader/\u003e\n\n## Problem\n\nFor larger Shiny apps, users could wait a long time with a blank screen before seeing the rendered app content in the web browser, possibly due to:\n\n- Loading a considerable number of render-blocking CSS/JS dependencies.\n- Initializing the app state with some intensive computation.\n- Connecting to servers with bandwidth and response time limitations.\n\n## Solution\n\nThis Shiny app skeleton solves these problems on the app code level by:\n\n- Implement a loading screen (loader); hide it after the main UI resources are loaded, and the state initialization is finished.\n- Prioritizing loading the loader code so it can render before the main UI assets.\n- Loading the main UI assets later separately without blocking the rendering of the loader.\n\n## Thanks\n\n- The general structure of the loading screen code is from [scartwright91/loading-dashboard](https://github.com/scartwright91/loading-dashboard), by using the single-element CSS spinner from Luke Haas and shinyjs from Dean Attali.\n- The loader code is packed as HTML dependency following the guidelines in the [handle HTML dependencies with htmltools](https://unleash-shiny.rinterface.com/htmltools-dependencies.html) chapter of the \"Outstanding User Interfaces with Shiny\" book by David Granjon.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanxstats%2Fshiny-fcp-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanxstats%2Fshiny-fcp-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanxstats%2Fshiny-fcp-loader/lists"}