Cached, PHP generated Thumbnails load slowly

前端 未结 19 2104
醉酒成梦
醉酒成梦 2020-12-12 11:35

Question Part A ▉ (100 bountys, awarded)
Main question was how to make this site, load faster. First we needed to read these waterfalls. Thanks all fo

19条回答
  •  旧时难觅i
    2020-12-12 12:00

    I think instead of using that thumbnail-generator script you must give TinySRC a try for rapid fast and cloud-hosted thumbnail generation. It has a very simple and easy to use API, you can use like:-

    http://i.tinysrc.mobi/ [height] / [width] /http://domain.tld/path_to_img.jpg

    [width] (optional):- This is a width in pixels (which overrides the adaptive- or family-sizing). If prefixed with ‘-’ or ‘x’, it will subtract from, or shrink to a percentage of, the determined size.

    [height] (optional):- This is a height in pixels, if width is also present. It also overrides adaptive- or family-sizing and can be prefixed with ‘-’ or ‘x’.

    You can check the API summary here


    FAQ

    What does tinySrc cost me?

    Nothing.

    When can I start using tinySrc?

    Now.

    How reliable is the service?

    We make no guarantees about the tinySrc service. However, it runs on a major, distributed cloud infrastructure, so it provides high availability worldwide. It should be sufficient for all your needs.

    How fast is it?

    tinySrc caches resized images in memory and in our datastore for up to 24 hours, and it will not fetch your original image each time. This makes the services blazingly fast from the user’s perspective. (And reduces your server load as a nice side-effect.)


    Good Luck. Just a suggestion, since u ain't showing us the code :p

提交回复
热议问题