diff --git a/js/quicktabs.js b/js/quicktabs.js
index 1a4a75e..b5a1d5d 100644
--- a/js/quicktabs.js
+++ b/js/quicktabs.js
@@ -68,10 +68,11 @@ Drupal.quicktabs.tab = function (el) {
 
 // ajax callback for non-views tabs
 Drupal.quicktabs.tab.prototype.success = function(response) {
-  this.container.append(Drupal.theme('quicktabsResponse', this, response.data.content));
+  //process scripts before output, that way our settings and scripts are loaded before the dom events
   $.extend(true, Drupal.settings, response.data.js_css.js_settings);
   Drupal.quicktabs.ajax.scripts(response.data.js_css.js_files);
   Drupal.quicktabs.ajax.css_files(response.data.js_css.css_files);
+  this.container.append(Drupal.theme('quicktabsResponse', this, response.data.content));
   Drupal.attachBehaviors(this.container);
 }
 
@@ -126,6 +127,9 @@ Drupal.quicktabs.tab.prototype.quicktabsAjaxView = function() {
     type: 'GET',
     data: viewData,
     success: function(response) {
+      // load the settings prior to processing the view,
+      // this allows quicktabs to be sent inside of a view
+      $.extend(true, Drupal.settings, response.scripts.setting);
       // Call all callbacks.
       if (response.__callbacks) {
         $.each(response.__callbacks, function(i, callback) {
