Using phantomjs to capture screen shots


Is there any way to know if the view is fully loaded (Images and all) ?

My phantomjs script checks if the view is active and if it has one of the classes that’s present in all the Views but I get issues with image loading because I’m requesting it from an external service.

Any thoughts on this ?

My phantomjs evaluates like this:

var result = page.evaluate(
    function (page,selector) {
	var pages = document.getElementsByTagName(page);
	for(var i = 0; i< pages.length; i++){
	    if(pages[i].getAttribute('nav-view') === 'active' && pages[i].querySelector('.ionContentOfFeature')){
	        return true;
	return false;
},'dynamic-nav-view', '.ionContentOfFeature');