From 38062af8895b6c176a4799a48bdb539008188e9c Mon Sep 17 00:00:00 2001 From: garronej Date: Tue, 7 Dec 2021 15:20:37 +0100 Subject: [PATCH] Add info with pages taking too long to load #58 (changelog ignore) --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 57e0d08f..b6dc5d89 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,7 @@ If you already have a Keycloak custom theme, it can be easily ported to Keycloak - [Implement context persistence (optional)](#implement-context-persistence-optional) - [Kickstart video](#kickstart-video) - [About the errors related to `objectToJson` in Keycloak logs.](#about-the-errors-related-to-objecttojson-in-keycloak-logs) +- [The pages take too long to load ?](#the-pages-take-too-long-to-load-) - [Adding custom message (to `i18n/useKcMessage.tsx`)](#adding-custom-message-to-i18nusekcmessagetsx) - [Email domain whitelist](#email-domain-whitelist) - [Changelog highlights](#changelog-highlights) @@ -461,6 +462,10 @@ To [converts the `.ftl` values into a JavaScript object](https://github.com/Inse without making assumptions on the `.data_model` we have to do things that throws. It's all-right because every statement that can fail is inside an `<#attempt><#recorver>` block but it results in errors being printed to the logs. +# The pages take too long to load ? + +The problem of templates taking a long time to load only happens in the test environment, when you have a console logging all the above-mentioned `.ftl` warnings in real time. Logging all those warnings is what takes time. Once in production page load is way faster. + # Adding custom message (to `i18n/useKcMessage.tsx`) You can reproduce [this approach](https://github.com/garronej/keycloakify-demo-app/blob/main/src/kcMessagesExtension.ts)