yuzd / Hangfire.HttpJob

httpjob for Hangfire,restful api for Hangfire,job调度与业务分离
https://github.com/yuzd/Hangfire.HttpJob/wiki
MIT License
620 stars 184 forks source link

为什么这个jq这么大 #140

Closed ysq5202121 closed 2 years ago

ysq5202121 commented 2 years ago

image 放到网络上面很慢

ysq5202121 commented 2 years ago

增加UseHangfireHttpJob,这个文件加了一倍的大小

yuzd commented 2 years ago

image

主要是因为这个的原因

ysq5202121 commented 2 years ago

这个在线上服务器会影响效率,打开非常慢,是否能够分开几个文件?

ysq5202121 commented 2 years ago

1.7M下载要3秒。

yuzd commented 2 years ago

hangfire的扩展机制里面想要把自定义的js加到hangfire自身的页面

  1. 目前的实现方式是官方的推荐方式 不知道有没有别的方式 需要调研下
ysq5202121 commented 2 years ago

目前暂时通过响应压缩减小了大小 image

yuzd commented 2 years ago

怎么开启的 共享下

ysq5202121 commented 2 years ago

https://docs.microsoft.com/zh-cn/aspnet/core/performance/response-compression?view=aspnetcore-6.0

public void ConfigureServices(IServiceCollection services) { services.AddResponseCompression(); }

public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
    app.UseResponseCompression();
}