承接 ether/critical 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

ether/critical

Composer 安装命令:

composer require ether/critical

包简介

A Critical CSS generator for Craft CMS

README 文档

README

A Critical CSS generator for Craft CMS.

Usage

Add the critical-css hook to your head tag:

<head>
    {# ... #}
    
    {% hook 'critical-css' %}
    
    {# ... #}
</head>

Wrap anything you consider to be above the fold with fold tags:

{% fold %}

...

{% endfold %}

The fold tag supports an If statement, useful when using the tag in a loop:

{% for block in entry.pageContent %}
    {% fold if loop.index < 2 %}
        ...
    {% endfold %}
{% endfor %}

Upcoming Features

  • Exclude @font-face's if their font isn't referenced in critical.
  • Ability to ignore certain CSS files.
  • Ability to clear all critical CSS files
  • Ability to clear all critical CSS files for a certain template
  • Ability to (re)gen critical en masse (loop through all elements)
  • Support all possible templates (products, categories, static, etc.)
  • Option to generate missing critical on page load
  • Customize Critical CSS save location.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2018-10-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固