Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No loading message when /app_direct/ Shiny App is launched (contrary to /app/ version) #159

Closed
dylancis opened this issue Jun 19, 2019 · 4 comments
Labels

Comments

@dylancis
Copy link

The /app_direct/ verion of the Shiny Application does not show the loading message in contrary to the /app/ version.

/app/:
image

The time it takes to load the application is the same, but while /app/ shows you the following message, the /app_direct/ will not show anything until the application loads up.

/app_direct/:
image

Is there any reason for now showing the startup message in /app_direct/ ?

Thank, you, Dylan

@dylancis
Copy link
Author

This is even a bigger problem when a new pod is spinning up where a few minute can be spent waitring for the container to be ready.

@kuzmenkov111
Copy link

Is any news about this problem?

@tanho63
Copy link
Contributor

tanho63 commented Nov 22, 2019

The /app/ version is an HTML page created from the app.html template - the loading screen is a javascript call from that template. The /app_direct/ version is the raw shiny app, which is then iframed into the /app/ template.

You might consider other loading screen methods like: https://stackoverflow.com/questions/35599470/shiny-dashboard-display-a-dedicated-loading-page-until-initial-loading-of

@LEDfan LEDfan added the question label Mar 3, 2021
@LEDfan
Copy link
Member

LEDfan commented Mar 3, 2021

Hi all

It's indeed correct that no loading screen is shown when using the app_direct endpoint, this is the intended behavior. The idea of this endpoint is to integrate it in some other application and then also create your own loading page.
Since ShinyProxy 2.5.0, you can now also load an application with the sp_hide_navbar=true query parameter. For example:

http://localhost:8080/app/rstudio?sp_hide_navbar=true

This still uses an iframe to load the application and therefore also displays the loading animation, however, the navigation bar is hidden. I hope this option is a good alternative for the app_direct endpoint.

Since I think this issue is solved now, I'm closing it. Feel free to open a new issue if you encounter any problem.

@LEDfan LEDfan closed this as completed Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants