定制 codemonkey1988/script-style-push 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

codemonkey1988/script-style-push

最新稳定版本:2.3.3

Composer 安装命令:

composer require codemonkey1988/script-style-push

包简介

TYPO3 Extension to push javascript and css files over a http/2 connection.

README 文档

README

TYPO3 Extension to push JavaScript and CSS files over a HTTP/2 connection. The CSS and JavaScript files are automatically parsed from rendered html.

This extension does not push images automatically, because of huge traffic overload when using responsive images. Each image in the picture source would be pushed to the client.

Installation

composer require codemonkey1988/script-style-push

Configuration

To support your used CSS and JavaScript files, you just need to install this extension. The extension will automatically push every CSS and JavaScript file found in the html response.

You can add custom resources to push. Just add a comma separated list of asset paths to the site configuration. Just add a comma separated list of assets. Keep in mind, that this might change in the future as TYPO3 supports additional custom field types for site configuration.

Prevent asset over-pushing

This extension help you preventing over-pushing of assets by setting a session cookie that contains all assets that were pushing during the user session. This extension will not push an asset, if it's in the cookie. This feature can be disabled in extension settings.

Disabling this extension

If you need to disable generating the Link header, you can do this by setting the env variable SCRIPT_STYLE_PUSH_DISABLED to 1.

统计信息

  • 总下载量: 10.4k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2018-02-14