Check out the LimeSurvey source code on GitHub!

Google Ajax API CDN

More
5 years 6 months ago #62490 by Diamens
Option to use Google Content Delivery Network for jQuery library.

Please Log in to join the conversation.

More
4 years 10 months ago #76324 by jun9
Yeah! Although it's very easy to edit php source code to make use of Google CDNs, but why not add that?
Is there any particular version/change requirement in limesurvey jquery/jquery UI?

Please Log in to join the conversation.

More
4 years 10 months ago #76357 by Mazi
Diamens, can you please outline the benfit in more detail.

You can add this as a feature request at our feature tracker . Please describe your idea as detailed as possible and try to outline a suitable solution/implementation as well.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
4 years 10 months ago #76444 by DenisChenu

Mazi wrote: Diamens, can you please outline the benfit in more detail.

You can add this as a feature request at our feature tracker . Please describe your idea as detailed as possible and try to outline a suitable solution/implementation as well.

Hello,

I think it's very important to have an option to activate/deactivate. Some installation are on internal server without web access, some user don't want to use more "private" service like google, google can change the way you can access to jquery/jquery-ui library etc ...

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
4 years 10 months ago - 4 years 10 months ago #76539 by jun9
Of course CDN reference should always be used with backup, like this:
<script src="google cdn jquery"></script>
    <script>window.jQuery || document.write('<script src="local jquery"></script>')</script>
or if use Modernizr.load :
Modernizr.load([
  {
    load: 'google cdn jquery ',
    complete: function () {
      if ( !window.jQuery ) {
            Modernizr.load('local jquery');
      }
    }
  },
  {
    // This will wait for the fallback to load and
    // execute if it needs to.
    load: 'needs-jQuery.js'
  }
]);
That's why we need that header.pstpl too.
Last Edit: 4 years 10 months ago by jun9.

Please Log in to join the conversation.

More
4 years 10 months ago #76552 by DenisChenu

jun9 wrote: Of course CDN reference should always be used with backup, like this:

I don't speak of backup,

But : by default : local call
Option to put CDN in global configuration of LS.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form