API Documentation

Load CSS and JS File
$petrojs('head').LoadStylesheet('CSS FILE',function(){

	//code goes here

}, 2000);

$petrojs('head').LoadJavascript('JS FILE',function(){

	//code goes here

}, 2000);

$petrojs('head').LoadCss({

	load:['CSS FILE1','CSS FILE2'],

	timeout:2000,

	onloadcss:function(){

		//code goes here

	}

});

$petrojs('head').LoadJs({

	load:['JS FILE1','JS FILE2'],

	timeout:2000,

	onloadjs:function(){

		//code goes here

	}

});

$petrojs('head').LoadCSSJS({

	load:['CSS FILE1','CSS FILE2'],

	complete:function(){

		//perform complete action

	}

});