Lazy load messes Fotomoto

I have a website that loads images asynchronimously, and it seems to make Fotomoto not work (http://mercedesnoriega.com/portfolio/...)
The "Buy Print" button only shows up after a couple of refreshes.
Is there a way to set up Fotomoto to load after all images have successfully loaded?

Thank you in advance,

Juan
1 person has
this problem
+1
Reply
  • Derek (Official Rep) May 23, 2018 15:03
    Hi Juan,

    Thank you for your email, and yes you are correct that by default Fotomoto can not detect images that load after the page is initially loaded.

    If you have some JavaScript know-how, it is possible to trigger the Buy links to appear using calls to the Fotomoto API, but at this time there is no simpler way to make Fotomoto detect images that are lazy loaded.

    Our current suggestion is to disable lazy loading and if you've got too many images on a page for a single load to happen quickly, divide the images up, putting some on another page.

    I hope that helps and kind regards,
    Derek
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • Hi Derek,

    Thank you for your reply.
    If I understand it correctly, the API methods are all meant to work with just one image, not with a whole list of images, correct?

    Is there a way to simple "launch" the Fotomoto script after the page has loaded? Or at least "refresh" Fotomoto?

    Thank you again,

    Juan
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • Derek (Official Rep) May 25, 2018 18:34
    Hi Juan,

    You're very welcome - I'm glad to help.

    I think the best approach here would be to call the showToolbar function when new images are loaded in to the page. There's an example of the showToolbar function working on our Fotomoto API HTML Sample page, and though it's not a lazy-loading page, anyone with the requisite JavaScript skills should be able to get it working in short order.

    I hope that helps and kind regards,
    Derek
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated