uPortal 5 : dynamic skin too slow

4 views
Skip to first unread message

Jérôme Nenert

unread,
Oct 16, 2019, 11:21:22 AM10/16/19
to uPortal Community, uport...@apereo.org

Hi,

uPortal-start using defaultSkin, browser: Firefox

Dynamic skin takes too slow : a user can quickly see a no css page
just before seeing the regular page with defaultSkin ( tested on the
welcome page, but can be seen on any tabs when logged in ).

Any optimization that could help ?

Regards.

Jerome NENERT
D.S.I.
Université Panthéon-Assas






Jérôme Nenert

unread,
Oct 23, 2019, 4:13:13 AM10/23/19
to uport...@apereo.org

No problem with static skin using skin.xml.

After some investigations, the problem is "flash of unstyled content"
("FOUC").

This hack solved the issue :

1) respondr.xsl

<style>html{visibility: hidden;opacity:0;}</style>

2) CSS

html {
visibility: visible;
opacity: 1;

Any other idea ?


Jérôme Nenert <Jerome...@u-paris2.fr> a écrit :
> --
> You received this message because you are subscribed to the Google
> Groups "uPortal Developers" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to uportal-dev...@apereo.org.
> To view this discussion on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/uportal-dev/20191016172119.Horde.noh3mdxNxKRxiJCUQrKcizz%40courriel.u-paris2.fr.


Julien Gribonvald

unread,
Oct 23, 2019, 4:51:11 AM10/23/19
to uport...@apereo.org

Hi Jérôme,

An other idea the portlet loading order can cause this problem, watch on your dlm precedence (it should be on the first elements loaded and at top of the page), and you should not have any other portlet that take time to load before !

You dynamic skin could be on a specific DLM like this one:

<layout xmlns:dlm="http://www.uportal.org/layout/dlm" script="classpath://org/jasig/portal/io/import-layout_v3-2.crn"
        username="dynamic-skin-lo" >
    <folder ID="s1" hidden="false" immutable="false" name="Root folder" type="root" unremovable="true">
        <folder ID="s100" hidden="false" immutable="true" name="Page Top folder" type="page-top" unremovable="true">
            <channel fname="dynamic-respondr-skin" unremovable="false" hidden="false" immutable="false" ID="n110"/>
        </folder>
    </folder>
</layout>

And your DLM definition should have a a big precedence to be loaded on first elements, like :

<fragment-definition xmlns:dlm="http://org.apereo.portal.layout.dlm.config" script="classpath://org/jasig/portal/io/import-fragment-definition_v3-1.crn">
  <dlm:fragment name="dynamicSkin" ownerID="dynamic-skin-lo" precedence="90">
    <dlm:audience evaluatorFactory="org.jasig.portal.layout.dlm.providers.AllUsersEvaluatorFactory" />
  </dlm:fragment>
</fragment-definition>

Julien

--
Julien Gribonvald

Benito Gonzalez

unread,
Oct 23, 2019, 5:10:36 PM10/23/19
to uPortal Developers
What a great thread! Thank you for having this discussion for all of us to benefit.

Best,
--bjagg


From: "Julien Gribonvald" <julien.g...@recia.fr>
To: "uPortal Developers" <uport...@apereo.org>
Sent: Wednesday, October 23, 2019 1:51:08 AM
Subject: Re: [uportal-dev] uPortal 5 : dynamic skin too slow

Jérôme Nenert

unread,
Oct 24, 2019, 9:49:21 AM10/24/19
to Julien Gribonvald, uport...@apereo.org

Hi Julien,

I've tested with a higher precedence on a specific DLM for dynamic
skin, but still experiencing FOUC. Even tried with only 2 layouts (
guest and dynamic-skin ), same result. ( tested on Firefox )

Jerome

Julien Gribonvald <julien.g...@recia.fr> a écrit :
> https://groups.google.com/a/apereo.org/d/msgid/uportal-dev/13b28cb1-ad11-c09c-1523-e44157df2674%40recia.fr.

Reply all
Reply to author
Forward
0 new messages