When doctype.js file is executed

Is doctype.js file executed on first instance of doctype creation or on each time we refresh it?