Okay
  Public Ticket #1752589
Portfolio image loading
Closed

Comments

  • Warwick Behrens started the conversation

    I have turned off Ajax in order to add Shopify product buttons which will not load if Ajax is turned on.

    Now that I have turned off Ajax I notice the Portfolio page loads extremely slow. 

    Are the two related? 

    I need to keep the Shopify buttons on each portfolio item page but I need a way to load the portfolio page efficiently... perhaps only showing some items with option to "show more" - I think this is an Ajax plug in.

    Needing advice on this please.

  •  1,974
    Support replied

    Hello Warwick,

    Yes turning off AJAX affects the page loads.

    As I mentioned on comments section, it looks like you have lots of images in your portfolio, bringing the page size to around 24 Mb which makes loading difficult on mobile (before the content is being cached). One relatively easy thing you can do (apart from optimizing the site speed https://clapat.ticksy.com/article/8082) is to change the image size of the thumbnails in portfolio page. In portfolio-page.php (or portfolio-mixed-page.php, depending on the page template you are using) change

    $aruba_item_full_image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');
    

    to

    $aruba_item_full_image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'medium');
    

    Do the same in /sections/portfolio_section_item.php The image sizes (large. medium, thumbnail) can be also changed in wp admin dashboardhttps://premium.wpmudev.org/blog/daily-tip-how-to-change-the-default-image-sizes-in-the-wordpress-dashboard/

    Thanks


    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Warwick Behrens replied

    Thanks for your response :) I have made the change from "large" to "medium" - but only on the main portfolio page. 

    Although, it did not improve the load speed much at all.

    I cant reduce the quantity of images - as this is my artist portfolio. It needs to have a full catalogue of images.

    Would I be right to assume that the same images used in the portfolio main page are also used on the singular page for that item? If so, I have a real problem because I need fast loading on the main page (small files) but a high quality image on the portfolio singular page (large file). Does the template support this?

    I really need different files to show on the main portfolio page - or have a plug in that will only load a few at a time.

    How can this be achieved?

  •   Support replied privately
  •   Support replied privately
  •   Warwick Behrens replied privately
  •   Warwick Behrens replied privately
  •   Support replied privately
  •   Warwick Behrens replied privately
  •   Support replied privately