1 of 1 people found this helpful
i think the style and js files for some component are loaded lazily , for example if one page contains rich:tooltip then it's js & styles are loaded, if there is no tooltip in your page then no unnecessary styles and js being loaded.
But we are not using tooltip component on that page, so why it's load it then.
Structure is as follows:
Main.jsf -> has two tabs (profile.jsf and account.jsf)
Profile.jsf doesn't have any tooltip
Account.jsf uses rich:tooltip
But then even when I'm on Profile.jsf, I see tooltip related scripts and styles being loaded, not sure if that's the intended behavior.
Also, even if I assume it's the correct behavior, then not sure why it just doesn't load this script and style for a specific input, could this be affected anyways if there are some suspicious character present in the input string?
is your rich:tabPanel switchType value "client" ?., could you please try your tests without the tabs ?, thank you.
No, switchType is set to default. I did try removing the tab which includes rich:tooltip and I could see the response no longer contained those script and style.
with switchType="server" i expect the same result.
meaning if switchType="server", it would load all the scripts everytime.
Also, is it possible to somehow get some insight as how richfaces library determines to include a script/style in response? This would really help understand as under what conditions it could skip including these artifacts in response.