How to use jquery to create progress bar for loadi

2019-08-16 18:27发布

I want to take size in bytes of image in page at the first load page, and then create a loading bar and show it loading similar preloader of flash. But I don't know if jQuery can take size in bytes of image or not.

1条回答
老娘就宠你
2楼-- · 2019-08-16 18:49

I think all of these answers require something server-side to determine the file-size (please correct me if I'm wrong), but it would probably be best to preload the size from server-size or do an AJAX request to determine the file-size, but the latter seems counter productive.

查看更多
登录 后发表回答