$(function () { if ($("#tablescansioni").length) { loadScans(); } });