Comment to 'My experiences on page speed'
  • my 2 cent and two questions probably for Alex T⚜️ or LeonidS 

    - why is UNA still using APC instead APCu? (so needs the APC-bc module)
    - why is it loading a platform.js from cdn.embedly.com on every page even if I have disabled Embedly (and all other) in the settings?

    So back to technical speed things. I've tried to speed up as much as possible as described below:

    using a quadcore server atm from the older generation (Intel Xeon E3-1220 @3.1 GHz) with 4 GB RAM (new server is coming soon) for UNA 10.0.0-B2. Running Ubuntu 16.04 with PHP 7.3 FPM Apache. As frontend there is a nginx proxy, serving images and static files directly.
    Also lately added APCu (with APC-bc) as cache, enabled all caches in UNA.

    As result getting on Google Pagespeed on my UNA site lousy 22 points on Mobile and mediocre 74 on Desktop. 

    It has 77 request and 13 MB volume (damn pictures!) loading in 3-4 seconds. Worst thing to load are images and album pages, depends on who is online and how many are browsing images, but it can be veeeery slow. No real idea how to cache this huge image blobs from UNA good. It was better with single files in Dolphin IMHO.

    So beside from getting a new server I don't see much more options to get more speed. 

    • why is UNA still using APC instead APCu? (so needs the APC-bc module)

      thank you for noticing this - https://github.com/unaio/una/issues/2277

      why is it loading a platform.js from cdn.embedly.com on every page even if I have disabled Embedly (and all other) in the settings?

      please specify how you've disabled Embedly ?

      No real idea how to cache this huge image blobs

      Images are cached by default for 30 days, it's specified in cache_control field in sys_objects_storage table. 

      It was better with single files in Dolphin IMHO.

      Could you please describe it in more details, what you mean here ? and why you think it was better in Dolphin ?

       

      • Hi Alex T⚜️ 

        Thank you for considering APCu!

        Embedly: In Studio > Settings > General > Embeds Provider is set to None. So from my understanding I wouldn't expect any sideload from Embedly.

        Images: I've checked again and currently I am not completely sure how you save the images. My first impression was you put them in some mega "binary blobs", but now I just find some binary files in /storage/ tree.. so might be mistaken on that part.

        • trunky you are welcome

          Embedly: Froala loads Embedly JS, since it's possible to insert Embedly via Froala editor in any form where Froala is used, so it can appear on any page, this is the reason it's loaded on every page. If you disable Froala editor then Embedly JS will not be loaded.

          Images: I suspect that it maybe you've enabled "Enable cache for images" setting in Developer module and maybe increased "Cached image max size (in Kb)" value, it will cause that images which are smaller than cached image max size will be displayed as base64 inline in HTML.