• Resolved SK

    (@sooskriszta)


    Loading libraries such as jQuery from my server can be slow for my customers, who may already have a cache of the library from Google Libraries CDN in the browser cache. Even if they don’t, loading from Google Libraries is almost certainly going to be faster than loading from my server.

    Can SiteKit add the simple feature that the admin can toggle on/off to load the needed libraries such as jQuery from Google Libraries?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter SK

    (@sooskriszta)

    Also, load jQuery v jQuery Mobile, I suppose, depending on the requesting user agent…

    Plugin Support James Osborne

    (@jamesosborne)

    Hi @sooskriszta,

    Many thanks for the suggestion. Site Kit doesn’t load it’s own version of jQuery, instead it enqueues the core version of jQuery bundled with WordPress.

    In relation to other users who may be already requesting Google library scripts, Site Kit also requests scripts associated with the Google API’s for the services that are connected, and only on the Site Kit dashboard tab, not elsewhere on your site. Without doing so, conflicts would indeed arise, not just possible performance related issues. We did see such conflicts from other plugins loading other libraries on the Site Kit dashboard.

    Also, load jQuery v jQuery Mobile, I suppose, depending on the requesting user agent…

    As far as I know jQuery is no longer in supported. Site Kit also uses React, which handles responsiveness and automatically renders different UI components and likely dependencies to switch programmatically define different libraries for difference devices.

    Do let me know if you have any questions with the above. Thank you!

    Thread Starter SK

    (@sooskriszta)

    Thanks @jamesosborne ! I understand Site Kit doesn’t load it’s own version of jQuery. What I meant was that as SiteKit provides access to Google tools, it would be a good idea if it could replace WordPress’s (local) version of jQuery with a Google CDN version of jQuery so that (almost) everything in WordPress ends up using jQuery from Google CDN.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @sooskriszta Thanks for the follow up. While I don’t believe this is something that will be done, I can certainly pass it on to the team to discuss later this week. If I have any information to add from that then I will update you here.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @sooskriszta Thanks for your patience while I discussed this with the team. At this moment we aren’t looking to implement this but we are always reviewing our processes so it may be something we look at in the future.

    Thanks again for your suggestion. Is there anything else we can help with?

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.