Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-493

HTML5 generated quickstart does not work when offline

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 1.0.0.M4b
    • Fix Version/s: None
    • Component/s: html5
    • Labels:
      None
    • Environment:

      HTML5 app created from JBDS 5.0.1 JBoss Central and modified to use Arquillian Drone

      Description

      Frequent usage of yepnope framework makes usage of demo app unusable when out of internet connection.

      The page is not rendered correctly because Modernizr call requires jquery and due to async resource execution it is not present yet.

      JavaScript error is logged as following:

      Failed to load resource http://code.jquery.com/jquery-1.7.1.min.js
      Failed to load resource http://code.jquery.com/jquery-1.7.1.min.js
      Uncaught TypeError: Cannot read property 'parentNode' of undefined chrome-extension://dfdmbpdbpocelpgahddghhkomnefchkl/fittowidth.js:31
      Uncaught TypeError: Object function (a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,i){var j=b(a),l=j.autoCallback;j.url.split(".").pop().split("?").shift(),j.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]||h),j.instead?j.instead(a,e,f,g,i):(y[j.url]?j.noexec=!0:y[j.url]=1,f.load(j.url,j.forceCSS||!j.forceJS&&"css"==j.url.split(".").pop().split("?").shift()?"c":c,j.noexec,j.attrs,j.timeout),(d(e)||d(l))&&f.load(function(){k(),e&&e(j.origUrl,i,g),l&&l(j.origUrl,i,g),y[j.url]=2})))}function i(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var j,l,m=this.yepnope.loader;if(e(a))g(a,0,m,0);else if(w(a))for(j=0;j<a.length;j++)l=a[j],e(l)?g(l,0,m,0):w(l)?B(l):Object(l)===l&&i(l,m);else Object(a)===a&&i(a,m)} has no method 'load' 
      
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                lucas.holmquist Lucas Holmquist
                Reporter:
                kpiwko Karel Piwko
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: