[ 
https://issues.apache.org/jira/browse/JSPWIKI-1322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18149858#comment-18149858
 ] 

Arturo Bernal commented on JSPWIKI-1322:
----------------------------------------

Thanks Jürgen. I reproduced this on current master (dd84b1044) with your 
%%add-css block in LeftMenu.

What I saw: the server sends the CSS as plain text inside a div with class 
add-css in the sidebar. The haddock stylesheet has no rule for .add-css, so the 
div is displayed (computed display: block) until the AddCSS behavior runs. Then 
the script replaces it with a style element and removes the div. The rule 
".add-css display:none" exists only in jspwiki.css of the old template 210.

So the CSS text is visible until the script runs. I did not measure the timing 
and I only checked Chromium, not Firefox or Edge.

A possible fix is to add ".add-css { display:none }" to the haddock less files. 
We have not tested that against AddCSS.js yet. Does this match what you see?

> Page flashing on reload
> -----------------------
>
>                 Key: JSPWIKI-1322
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-1322
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Templates and UI
>    Affects Versions: 3.0.0
>            Reporter: Jürgen Weber
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.0.1
>
>         Attachments: 2026-11-03 17_20_18-Wiki-Screenshot.jpg, 2026-11-23 
> 10_32_40-screenshot.jpg
>
>
> On reloading the browser page, the main content is pulled upwards and goes 
> down again, this results in the page flashing.
> This annoys our users.
> Continually reloading allows to screenshot this, see attachment.
> This is in 3.0.0 release and current master3. Reproduced in Firefox and Edge.
>  
> Maybe related to JSPWIKI-9 ?



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to