 			else
 				return
 
-			compile()
+			@compileDelayed()
 
 	compile: ->
 		content = [

		RocketChat.settings.add 'css', ''
		RocketChat.settings.addGroup 'Layout'

		compile = _.debounce Meteor.bindEnvironment(@compile.bind(@)), 200

		RocketChat.settings.onload '*', Meteor.bindEnvironment (key, value, initialLoad) =>
			if key is 'theme-custom-css'


	addPackageAsset: (cb) ->
		@packageCallbacks.push cb
		@compileDelayed()

	getCss: ->
		return RocketChat.settings.get 'css'
