jsfm.js
function include( path, isFromInclude, dot_path ) {
			if(!path){
				return;
			}
			all_paths.push(path)
			if(isNode){
				require(path);
				listenFileChange(path);
				if(isFromInclude){
					fileLoadeManager.iamready(dot_path);
				}
				return;
			}
			if (fm.isConcatinated) {
				fileLoadeManager.iamready(dot_path);
				return;
			}

			if (!docHead) {
				docHead = document.getElementsByTagName("head")[0];
			}

			// isNonfm && fm.holdReady(true);
			var e = document.createElement("script");
			// onerror is not supported by IE so this will throw exception only for
			// non IE browsers.

			if(me.version){
				path += "?v=" + me.version;
			}
			e.onerror = onFileLoadError;
			if(isFromInclude){
				e.onload = function(){
					fileLoadeManager.iamready(dot_path);
					$(document).trigger('jsfm-iamready-'+ path.split("/").pop().replace(".js", ""), [path]);
				};
			}

			e.src = path;
			e.type = "text/javascript";
			docHead.appendChild(e);
		}
function include( path, isFromInclude, dot_path ) {
			if(!path){
				return;
			}
			all_paths.push(path)
			if(isNode){
				require(path);
				listenFileChange(path);
				if(isFromInclude){
					fileLoadeManager.iamready(dot_path);
				}
				return;
			}
			if (fm.isConcatinated) {
				fileLoadeManager.iamready(dot_path);
				return;
			}

			if (!docHead) {
				docHead = document.getElementsByTagName("head")[0];
			}

			// isNonfm && fm.holdReady(true);
			var e = document.createElement("script");
			// onerror is not supported by IE so this will throw exception only for
			// non IE browsers.

			if(me.version){
				path += "?v=" + me.version;
			}
			e.onerror = onFileLoadError;
			if(isFromInclude){
				e.onload = function(){
					fileLoadeManager.iamready(dot_path);
					$(document).trigger('jsfm-iamready-'+ path.split("/").pop().replace(".js", ""), [path]);
				};
			}

			e.src = path;
			e.type = "text/javascript";
			docHead.appendChild(e);
		}
function include ( path , isFromInclude , dot_path ) { if ( ! path ) { return ; } all_paths . push ( path ) if ( isNode ) { require ( path ) ; listenFileChange ( path ) ; if ( isFromInclude ) { fileLoadeManager . iamready ( dot_path ) ; } return ; } if ( fm . isConcatinated ) { fileLoadeManager . iamready ( dot_path ) ; return ; } if ( ! docHead ) { docHead = document . getElementsByTagName ( "head" ) [ 0 ] ; } // isNonfm && fm.holdReady(true); var e = document . createElement ( "script" ) ; // onerror is not supported by IE so this will throw exception only for // non IE browsers. if ( me . version ) { path += "?v=" + me . version ; } e . onerror = onFileLoadError ; if ( isFromInclude ) { e . onload = function ( ) { fileLoadeManager . iamready ( dot_path ) ; $ ( document ) . trigger ( 'jsfm-iamready-' + path . split ( "/" ) . pop ( ) . replace ( ".js" , "" ) , [ path ] ) ; } ; } e . src = path ; e . type = "text/javascript" ; docHead . appendChild ( e ) ; }
Create script tag inside head.
Create script tag inside head .