MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

FAQ.How to optimize picture loading in Web Edition?

Answer: Use the WebPicture class.
Take your picture and create a WebPicture object. Store this WebPicture in a property of the WebPage, Session or app (as global as possible). On the first time you use this picture on an user session, the browser will load it. Second time you use it, the browser will most likely pick it from the cache.
Having pictures in App or some module reuses the same picture for all sessions which reduces memory footprint.
This does not work well with pictures you change very often or use only for one webpage on one user.

If you like to see an example, check our Map example:

MBS FileMaker Plugins