litespeedtech / litespeedtech/lscache_wp

css file load later than SVG files (lazy loading issue) after upgrade to 7.3

Open
#887 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

After upgrade to 7.3, it seems the css file is loaded later than the svg files:
Image
It will works well again after I restore to V7.2

And below is the correct one running with 7.2
Image

Also I checked the front-end code, it seems there are some logics of lazy loading changed, there is no inline JS code like below any more:
```html

...
function n(){console.log("[LiteSpeed] Start Lazy Load Images"),d=new LazyLoad({elements_selector:"[data-lazyloaded]",callback_finish:a}),o=function(){d.update()},e.MutationObserver&&new MutationObserver(o).observe(t.documentElement,{childList:!0,subtree:!0,attributes:!0})}var d,o;e.addEventListener?e.addEventListener("load",n,!1):e.attachEvent("onload",n)}(window,document);
```

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named. Start by comparing the 7.3 lazy-loading path with 7.2, using the reported CSS/SVG load order and the removed inline LazyLoad script as entry points; done means CSS loads in the expected order and the behavior matches the working 7.2 result.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript, php, wordpress
Domain
frontend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.