- $(window).resize( function(e) {
- if (timeout)
- clearTimeout(timeout);
- timeout = setTimeout(function () { mobile_resize() }, 100);
- });
+
+ if (mkws_config.responsive_design) {
+ $(window).resize( function(e) {
+ if (timeout)
+ clearTimeout(timeout);
+ timeout = setTimeout(function () { mobile_resize() }, 100);
+ });
+ $(document).ready(function() { mobile_resize() });
+ }