legacy-knowledge-base
公開されました Sep. 10, 2025

JS、CSSファイルがページ更新後にしか読み込まれない。

written-by

Sivakumar Perumal

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • ポートレット内のJSファイルやCSSファイルは、ページ更新時にのみ読み込まれる。

Environment

  • Liferay DXP 7.2

解決策

  • ページの一部の要素では、正しく動作させるために通常のナビゲーションが必要な場合があります。 このような場合、特定の要素についてはSPAを無効にする必要があります。 SPA を無効にすることで、本事象を解決できる可能性があります。
  • これらのスコープでSPAを無効にすることができます:
    1. Liferay DXPインスタンス全体でSPAを無効化する
    2. ポートレットでSPAを無効にする
    3. 個々の要素でSPAを無効にする
did-this-article-resolve-your-issue

legacy-knowledge-base