[ 
https://issues.apache.org/jira/browse/DRILL-6776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16646236#comment-16646236
 ] 

ASF GitHub Bot commented on DRILL-6776:
---------------------------------------

arina-ielchiieva closed pull request #1495: DRILL-6776: Drill Web UI takes long 
time for first time load in network isolated environment
URL: https://github.com/apache/drill/pull/1495
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/exec/java-exec/src/main/resources/rest/generic.ftl 
b/exec/java-exec/src/main/resources/rest/generic.ftl
index 81204f795c1..5b2dc45568c 100644
--- a/exec/java-exec/src/main/resources/rest/generic.ftl
+++ b/exec/java-exec/src/main/resources/rest/generic.ftl
@@ -35,9 +35,7 @@
 
       <link href="/static/css/bootstrap.min.css" rel="stylesheet">
 
-      <script type="text/javascript" language="javascript" 
src="//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
-      <script> window.jQuery  || document.write('<script 
type="text/javascript" language="javascript" 
src="../static/js/jquery-3.2.1.min.js">\x3C/script>')
-      </script>
+      <script type="text/javascript" language="javascript" 
src="../static/js/jquery-3.2.1.min.js"></script>
       <script src="/static/js/bootstrap.min.js"></script>
 
       <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media 
queries -->


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Drill Web UI takes long time for first time load in network isolated 
> environment
> --------------------------------------------------------------------------------
>
>                 Key: DRILL-6776
>                 URL: https://issues.apache.org/jira/browse/DRILL-6776
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Web Server
>    Affects Versions: 1.14.0
>            Reporter: Igor Guzenko
>            Assignee: Igor Guzenko
>            Priority: Major
>              Labels: ready-to-commit
>             Fix For: 1.15.0
>
>
> In the case when cluster is built upon network isolated from internet, 
> First-time loading of UI takes about 25 seconds. Where 15 seconds browser 
> spent 
> on waiting while request for 
> /ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
> timed out.
> JQuery was added to static resources in scope of DRILL-5699, but dependency 
> on 
> google's cdn wasn't fully removed. So the static resource was added as a 
> [fallback|https://stackoverflow.com/questions/1014203/best-way-to-use-googles-hosted-jquery-but-fall-back-to-my-hosted-library-on-go]
>  . I guess the main reason why fallback solution was applied is that there is 
> a 
> higher probability that library from google's mdn may be found & loaded from 
> browser's cache.
> Unfortunately this graceful solution doesn't work for really isolated 
> environment, that's 
> why we need to fully remove the 
> /ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js dependency.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to