You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Andi Huber (Jira)" <ji...@apache.org> on 2022/04/29 12:10:00 UTC
[jira] [Closed] (ISIS-2058) Pre-render home page to avoid wait when first hit webapp after bootstrapping
[ https://issues.apache.org/jira/browse/ISIS-2058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andi Huber closed ISIS-2058.
----------------------------
Resolution: Won't Fix
If homepage rendering takes long, that's most likely because it depends on resources that take long to load. I suppose identifying those resources, and then preload them on application startup makes more sense. (supposedly a broader solution)
> Pre-render home page to avoid wait when first hit webapp after bootstrapping
> ----------------------------------------------------------------------------
>
> Key: ISIS-2058
> URL: https://issues.apache.org/jira/browse/ISIS-2058
> Project: Isis
> Issue Type: Improvement
> Components: Isis Viewer Wicket
> Affects Versions: 1.16.2
> Reporter: Daniel Keir Haywood
> Priority: Minor
>
> You can try by rendering the home page in a separate thread during the bootstraping
> You need to use ComponentRenderer#renderPage(app.getHomePage())
> you can do this for any of Isis' pages. You just need to provide their input if they require such
>
> It is a static method and it creates an artificial RequestCycle for its needs (so it doesn't need an HTTP thread)
> [this is an cool idea for a small WicketStuff project that uses Wicket IInitializer to render the home page in the background as soon as the app is started]
--
This message was sent by Atlassian Jira
(v8.20.7#820007)