Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

AIRIOT智慧系统搭建平台经验交流

  1. Home
  2. 其他功能
  3. web性能如何优化?

web性能如何优化?

Scheduled Pinned Locked Moved 其他功能
Posts Posters Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rui
    wrote on last edited by
    #1

    edf379a5-c746-4fbb-812d-c64a27e20daa-image.png
    目前我们访问前端资源加载大概有60多mb,我们的带宽只有1Mbps,没有缓存的话需要2分钟以上。有没有办法优化前端资源的大小呢?

    1 Reply Last reply
    0
  • R Offline
    R Offline
    rui
    wrote on last edited by
    #2

    我看了下我们nginx的压缩已经配置到了8级

    1 Reply Last reply
    0
  • R Offline
    R Offline
    rui
    wrote on last edited by
    #3

    @fx @guangda 这个能和你们开发沟通一下吗

    1 Reply Last reply
    0
  • guangdaG Offline
    guangdaG Offline
    guangda
    wrote on last edited by
    #4

    好的 我问下开发

    1 Reply Last reply
    0
  • guangdaG Offline
    guangdaG Offline
    guangda
    wrote on last edited by
    #5

    前台页面有视频和图片的加载吗

    R 1 Reply Last reply
    0
  • R Offline
    R Offline
    rui
    replied to guangda on last edited by
    #6

    @guangda 只有图片

    1 Reply Last reply
    0
  • guangdaG Offline
    guangdaG Offline
    guangda
    wrote on last edited by
    #7

    有多少个图片,每个图片大概占用多少M,比如大图片10m以上加载比较耗时间,第二次在进入有缓存就加载快了

    R 1 Reply Last reply
    0
  • R Offline
    R Offline
    rui
    replied to guangda on last edited by
    #8

    @guangda bbd89d8c-e8fa-4c2c-8ef5-30e501511050-image.png
    只有一个4m左右的图片,按照文件大小排序的话其他的都是其他的资源

    1 Reply Last reply
    0
  • R Offline
    R Offline
    rui
    wrote on last edited by
    #9

    现在主要是没缓存的情况,第一次登录会比较卡

    1 Reply Last reply
    0
  • guangdaG Offline
    guangdaG Offline
    guangda
    wrote on last edited by
    #10

    是公网还是内网访问

    R 1 Reply Last reply
    0
  • R Offline
    R Offline
    rui
    replied to guangda on last edited by
    #11

    @guangda 公网

    1 Reply Last reply
    0
  • guangdaG Offline
    guangdaG Offline
    guangda
    wrote on last edited by
    #12

    平台最低的配置是带宽2M,平台加载页面的访问速度也会比较慢,建议都是在 5M+ 的带宽。您那边可以增加带宽,也方便以后添加视频驱动访问时候的页面加载速度

    R S 2 Replies Last reply
    0
  • R Offline
    R Offline
    rui
    replied to guangda on last edited by
    #13

    @guangda 了解

    1 Reply Last reply
    0
  • S Offline
    S Offline
    shirui
    replied to guangda on last edited by
    #14

    @guangda 目前开发这边有没有办法优化初始加载的资源呢?我们已经提升到5m代码,算下来首次访问加载资源也要接近1分钟左右才能打开前端

    1 Reply Last reply
    0
  • 核 Offline
    核 Offline
    核桃酥
    wrote on last edited by 核桃酥
    #15

    有多少个图片,每个图片大概占用多少M,第一次加载慢,第二次加载是快了吗?另外看一下运维管理中是有没运行的服务吗?

    1 Reply Last reply
    0
  • S Offline
    S Offline
    shirui
    wrote on last edited by
    #16

    image.png
    我们的照片最多就2-3mb的样子,主要加载的相关资源比较多。主要是首次登陆的问题,能否优化下相关的资源呢?

    1 Reply Last reply
    0
  • S Offline
    S Offline
    shirui
    wrote on last edited by
    #17

    我们自己开发产品基本上初始就5m的样子,你们这个初始加载的资源太多了

    1 Reply Last reply
    0
  • 核 Offline
    核 Offline
    核桃酥
    wrote on last edited by
    #18

    请问有外网地址吗?

    S 1 Reply Last reply
    0
  • S Offline
    S Offline
    shirui
    replied to 核桃酥 on last edited by
    #19

    有,稍后我私发给你

    1 Reply Last reply
    0
  • 核 Offline
    核 Offline
    核桃酥
    wrote on last edited by 核桃酥
    #20

    你是访问前台还是中台?你给我的地址没有复现你说的问题,我登陆之后带几秒之后就陆续加载页面了,可以吧你的现象录制一个视频通过奶牛快传发一下吗

    S 1 Reply Last reply
    0

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups