The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
jQuery cdn fallback
#1
some countries don't allow cdn or cdn goes down for some reason, or your working in localhost with no outside connection then fallback should be added to account for this, I've added to my pull request on github the following, which is added to users/includes/header.php.

<pre>
Code:
<!-- jQuery Fallback -->
<script type="text/javascript">
    if (typeof jQuery == 'undefined') {
        document.write(unescape("{3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}3Cscript src='<?=$us_url_root?>users/js/jquery.js' type='text/javascript'{3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}3E{3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}3C/script{3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}3E"));
    }
</script>
</pre>

  Reply


Messages In This Thread
jQuery cdn fallback - by firestorm - 05-14-2017, 07:45 AM
jQuery cdn fallback - by mudmin - 05-14-2017, 11:41 AM
jQuery cdn fallback - by firestorm - 05-14-2017, 12:56 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)