title: How to fix Primefaces resources being included multiple times?
body: <p>I'm migrating from Primefaces 6.1 to 7.0.18 at the moment one of my problems is related to Primeface somehow the resources for Primeface are now included multiple times within the generated HTML markup which delays the loading of the UI significantly and as well create a problem for file upload control open multiple time.</p>
  <p>I just notice it happen due to <code>primefaces.MOVE_SCRIPTS_TO_BOTTOM</code> in Init Parameter.</p>
  <p>Here is image for reference when primefaces.MOVE_SCRIPTS_TO_BOTTOM is not added</p>
  <p><a href="https://ibb.co/tzxMCZF" rel="nofollow noreferrer">https://ibb.co/tzxMCZF</a></p>
  <p><a href="https://ibb.co/cb1YkZH" rel="nofollow noreferrer">https://ibb.co/cb1YkZH</a></p>
  <p>Is there any known solution to this problem other than ditching <code>primefaces.MOVE_SCRIPTS_TO_BOTTOM</code> completely? without <code>primefaces.MOVE_SCRIPTS_TO_BOTTOM</code> my UI shuffle.</p>
  <ul>
  <li>Mojarra JSF 2.3</li>
  <li>Primeface 7.0.18</li>
  <li>JDK 8</li>
  <li>Apache Tomcat 9.0.35</li>
  </ul>