Any workaround for this so it don't break everything?
https://github.com/primefaces/primefaces/issues/3425
Primefaces 6.2
Widget for var 'XXX' not available!
Okay, I tried this one:
#mask {
position: fixed;
left:0; right:0; top:0; bottom:0;
}
with z-indez too, but it remove the windows scrollbar?
Answer by Oswaldo Acauan have compatibility issues with IE.
Answer by Zathrus Writer do not work on all click.
I will check the answer of jbkkd and Akshay Khandelwal.
But how I go to reactivate all the click and where I hook that? I was hoping someone faced this issue and had the best answer, this seem major.
#mask {
position: fixed;
left:0; right:0; top:0; bottom:0;
}
with z-indez too, but it remove the windows scrollbar?
Answer by Oswaldo Acauan have compatibility issues with IE.
Answer by Zathrus Writer do not work on all click.
I will check the answer of jbkkd and Akshay Khandelwal.
But how I go to reactivate all the click and where I hook that? I was hoping someone faced this issue and had the best answer, this seem major.
There seems to be better global solutions than wrapping eveyr component with is Jquery.Ready. https://stackoverflow.com/questions/193 ... fore-ready
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
A trick that might be more global is to do the following. use CSS to hide the page and then display it once the document is ready and thus your buttons will be ready.
CSS:
Then add this script in your layout template so it happens on every page.
This works for me.
CSS:
Code: Select all
html {
/** https://stackoverflow.com/questions/9550760/hide-page-until-everything-is-loaded-advanced/9551066 */
visibility: hidden;
}
Code: Select all
<script>
$(document).ready(function() {
document.getElementsByTagName("html")[0].style.visibility = "visible";
});
</script>
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
Thanks you, this is a really nice solution. I plugged it on my content container only since my header work fine. I even seem to see an improvement in rendering time. I have solutions, I will see what I will do, probably this. I can produce edge case that will probably not happen in prod where a page can take 5 sec to render in Chrome and it's a bit weird to see nothing for that long, strange that firefox display it nearly instantaneously but Chrome struggle that much.
No problem. I really like this trick because it actually speeds up the display time rather than the browser rendering and snapping the UI it just paints the screen once the display is actually ready.
As for why something takes 5 seconds in Chrome and 1 in Firefox it could be a certain piece of JavaScript. I have seen in the past where one browser for one particular function is way slower than the others. Typically that is IE though.
As for why something takes 5 seconds in Chrome and 1 in Firefox it could be a certain piece of JavaScript. I have seen in the past where one browser for one particular function is way slower than the others. Typically that is IE though.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Information
-
Who is online
Users browsing this forum: No registered users and 22 guests