이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

WP Rocket | Simple LoadCSS Preloader

설명

Deprecated

This plugin is deprecated and will be removed in the future.
It was coded back in 2019 when WpRocket did not have asynchronous support for CSS.
Although this plugin operates at a lower level (main php buffer), which helps apply loadsCSS to ALL styles regardless of whether they conform to wp_enqueue or not, we recommend instead using WpRocket’s system: Load CSS Asynchronously.

Description

Simple high performance plugin to enhance WP Rocket’s css output to use the loadCSS preload polyfill.
This will ensure any css being loaded via the page output is deferred, and utilizing a preload [rel] attribute.
Note: This will not affect admin pages. It’s designed only to process front-end pages.

It is recommended to enable the WP Rocket setting for “Optimize CSS”, which will provide your pages with inline Critical-CSS.
That way an unstyled flash is not seen on page load (if properly configured of course).

This plugin will boost your Lighthouse and PageSpeed Insight scores.

Plugin Mission

We hope that WP Rocket will implement this as a feature of their plugin.
The existing Load CSS Asynchronously only works for supported wp_enqueue styles, which not all plugins/themes properly utilize.
For normal users, we recommend using WP Rocket’s system instead of this plugin.

Requirements:

  • If you intend for logged-in users to see the effect, you must enable WP-Rocket’s setting called “caching for Logged-In Users”
  • Alternatively, you can run the plugin without WP-Rocket, despite it’s intended purpose. (>^.^)>

Features:

  • FilamentGroup’s LoadCSS(v2.0.1) inline injector
    (optional – see settings page next to WP Rocket), triggered via wp_head
  • High performance Regular Expression approach to process WP Rocket’s (php’s) output buffer, to replace stylesheets with the appropriate loadCSS syntax
  • Option to enable the buffer processor when you don’t have WP Rocket installed.
    ** This will respect AMP pages, and Yoast Sitemap output (by not executing). No other considerations have been implemented.

No fluff. Just a robust loadCSS implementation.

You can see how it works, & measure the performance, with this(via repl.it): Run the Plugin’s code
Just paste your own page’s url or html into the appropriate variable @ the top.

And you can test this plugin’s regex as well: WordPress.com html – links filtered by regex

Github link is here: Click

Last tested with:

  • WP Rocket 3.13.x
  • WordPress 6.2.x

Dependencies

  • WP Rocket (optional via settings)
  • file_get_contents() php function (if included loadCSS lib is used via options — default = yes)

스크린샷

  • Settings Page
  • Resultant HTML
  • Sample Measurement
  • Sample Regex

FAQ

  • Where are the settings?
    Right next to WP Rocket underneath the standard WordPress Admin -> Settings
  • Can I use this without WP Rocket?
    Yes, just make sure and check the box to do so under settings.
  • What ignore conditions are supported at this time?
    Yoast XML sitemap, and AMP pages. By default all Admin pages are ignored.

후기

2021년 2월 26일
Completely killed site. Could not connect to database after activation. Had to manually remove from plugins folder to resolve.
모든 2 평가 읽기

기여자 & 개발자

“WP Rocket | Simple LoadCSS Preloader”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“WP Rocket | Simple LoadCSS Preloader”(이)가 1(으)로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “WP Rocket | Simple LoadCSS Preloader”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.5

  • Fix for rare but possible scenario where plugin could crash if function isn’t available. is_plugin_active()

1.4

  • Fixed bugs with get_option() variable usage(proofing conditions), wrapped executions in try/catch to prevent potential for an exception to bubble up and crash site, and added logging for exceptions.
  • Adjusted readme to indicate DEPRECATED status of this plugin, being that WpRocket now has an asynchronous css loader.

1.3

  • Adjusted the main runtime to utilize better detection for string replacement, to handle more scenarios (just in case).

1.0

  • Release date: October 29, 2018