How to switch templates based on low bandwidth

  • Unknown's avatar

    Hi,

    I’m wondering if there’s a way to detect low bandwidth users using jQuery that would tell WordPress which template to load. I realize that jQuery is client-side and that PHP is server-side, so perhaps there’s a better way of doing this, but what I’m looking for is something like this in pseudo-code:

    jQuery call to check on bandwidth

    if (bandwidth is low) { wordpress loads low bandwidth template }
    else { wordpress loads normal template }

    If there’s a better way to do this or a plugin, I’m all ears…

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    I checked your site and it appears you’re in the wrong forum. Although your site is connected to WordPress.com via Jetpack, it is using the open source WordPress.org software and you need to seek help at these forums:

    https://wordpress.org/support/forums

    These forums are for WordPress.com hosted sites only. Since we do not have access to self-hosted WordPress.org sites, we are unable to provide any direct assistance to your issue. I would reach out to your site host for help.

    If you want to know more about the differences between WordPress.com and WordPress.org you can read this document:

    WordPress.com vs. WordPress.org

    Thanks!

  • Unknown's avatar

    Ah, thanks for letting me know.

  • The topic ‘How to switch templates based on low bandwidth’ is closed to new replies.