We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#1578 defer対応についてはすでに上記にissueが立っていますが、違う目線から提案します。
公開側配布テーマ(bc_sampleなど)のjQueryなどにdefer属性を付けると、動作しない プラグインの対応を考える必要があります。複雑な話になりがちなので、baserCMSの パッケージではそこまで考えないことにして、メールプラグイン・ブログプラグインなど 同梱の機能に関して、「jQueryなどをdeferで読み込んでも動作する」ようにするのが 分かりやすくてよいのではと思います。
具体的には、jQueryを必要とするスクリプトを外部ファイル化し、これをdeferで読み込みます。
<script> let getTokenUrl = '<?php echo $this->BcBaser->getUrl('/bc_form/ajax_get_token?requestview=false') ?>'; </script>
値をPHPで動的に生成する必要がある時は、上記のように、そこだけインラインで テンプレート中に書きます。
baserCMS version : 4.4.x
The text was updated successfully, but these errors were encountered:
4910dff
fix #1609 BlogPostsService::createYearMonthDayCondition のユニットテスト実装 (#…
6ce9407
…1693) Co-authored-by: Đỗ Văn Hùng <HungDV2022>
No branches or pull requests
概要
#1578
defer対応についてはすでに上記にissueが立っていますが、違う目線から提案します。
公開側配布テーマ(bc_sampleなど)のjQueryなどにdefer属性を付けると、動作しない
プラグインの対応を考える必要があります。複雑な話になりがちなので、baserCMSの
パッケージではそこまで考えないことにして、メールプラグイン・ブログプラグインなど
同梱の機能に関して、「jQueryなどをdeferで読み込んでも動作する」ようにするのが
分かりやすくてよいのではと思います。
具体的には、jQueryを必要とするスクリプトを外部ファイル化し、これをdeferで読み込みます。
値をPHPで動的に生成する必要がある時は、上記のように、そこだけインラインで
テンプレート中に書きます。
baserCMS version : 4.4.x
The text was updated successfully, but these errors were encountered: