private boolean isJavascript ( String type ) { if ( "text/javascript" . equalsIgnoreCase ( type ) ) { return true ; } if ( "application/x-javascript" . equalsIgnoreCase ( type ) ) { return true ; } return false ; }
Check if the resource is javascript or not .