litespeedtech / litespeedtech/lscache_wp

Critical CSS 'Unknown Word' Error

Open
#205 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
257
Forks
123
PR merge metrics
No merged PRs in 30d

Description

Whenever I try to generate critical CSS I get errors like this for all pages:

/*CssSyntaxError: /min/cf290.css:1:6491: Unknown word*/

From doing some research, this seems like it is happening because Litespeed is coming across CSS errors. Is it possible to get better handling of CSS errors when generating critical CSS? I don't get these kinds of errors in any other plugins that generate critical CSS so it must be possible.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing critical CSS generation for the affected pages and inspect the reported /min/cf290.css error at position 6491. The issue does not name a source file or test, so locate the critical CSS generation entry point and determine how CSS syntax errors are currently handled; done means generation handles the reported error without failing and has coverage for it.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
performance
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.