Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS 背景图采用拼接多个 url 方案会导致浏览器额外多出资源请求 #102

Open
ediaos opened this issue May 25, 2023 · 0 comments

Comments

@ediaos
Copy link

ediaos commented May 25, 2023

讨论:CSS 背景图采用拼接多个 url 方案会导致浏览器额外多出资源请求

image

[ ] Regression 
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request

Current behavior

CSS 背景图采用拼接多个 url 方案会导致浏览器额外多出资源请求,在实际大规模业务使用中这部分方案应该是有问题的

Expected behavior

目前思考思路:
1、通过 serviceworker 进行拦截请求处理
2、通过 performance 监听,判断可能为异常再 insertRule (移除当前的 setInterval)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant