hypershop/module-exclude-footer-scripts-os

此模块用于排除javascript将页面底部移动的功能。这允许在页面加载期间立即执行脚本。

100.4.5.1 2022-11-02 10:27 UTC

This package is auto-updated.

Last update: 2024-09-30 01:57:32 UTC


README

  • 此模块用于排除javascript将页面底部移动的功能。当使用JS设置:"将JS代码移动到页面底部"时,这非常有用。这允许在页面加载期间立即执行脚本。

安装/设置

  • 使用以下命令安装模块:composer require hypershop/module-exclude-footer-scripts-os
  • 安装后,运行bin/magento setup:upgrade以将其添加到Magento模块列表。

使用/设置

  • 为了防止脚本被移动到页面底部,请将excluded标签添加到脚本中。
<script type="text/javascript">
    console.log('I get moved to the footer after load');
</script>
<script type="text/javascript" excluded>
    console.log('I do not get moved to the bottom!');
</script>

常见问题

  • 目前还没有已知的问题。