Script lazy loading from anchor Click here Open your dev console and type in PiLazy.getInstance($('demo1')).sayHi();