Welcome, Guest
Username: Password: Remember me

TOPIC: Google Ajax API CDN

Google Ajax API CDN 3 years 1 month ago #62490

  • Diamens
  • Diamens's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 16
  • Karma: 0
Option to use Google Content Delivery Network for jQuery library.
The administrator has disabled public write access.

Re: Google Ajax API CDN 2 years 4 months ago #76324

  • jun9
  • jun9's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 15
  • Thank you received: 1
  • Karma: 0
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?
The administrator has disabled public write access.

Re: Google Ajax API CDN 2 years 4 months ago #76357

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5300
  • Thank you received: 291
  • Karma: 247
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)limesurvey.org'"
The administrator has disabled public write access.

Re: Google Ajax API CDN 2 years 4 months ago #76444

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6198
  • Thank you received: 787
  • Karma: 238
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
The administrator has disabled public write access.

Re: Google Ajax API CDN 2 years 4 months ago #76539

  • jun9
  • jun9's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 15
  • Thank you received: 1
  • Karma: 0
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: 2 years 4 months ago by jun9.
The administrator has disabled public write access.

Re: Google Ajax API CDN 2 years 4 months ago #76552

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6198
  • Thank you received: 787
  • Karma: 238
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
The administrator has disabled public write access.
Time to create page: 0.124 seconds
Donation Image