Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2016
    Posts
    20
    Plugin Contributions
    0

    Default Looking for guidelines to solve the problem

    Encountering an jquery issue that sometimes load my webpage and sometimes not, i will need to refresh a few times just to load it.

    A parser-blocking, cross site (i.e. different eTLD+1) script, https://code.jquery.com/jquery-3.4.0.min.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.

    Anyone experiencing same issue? Shred some light please.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,400
    Plugin Contributions
    87

    Default Re: Looking for guidelines to solve the problem

    What template are you using?

  3. #3
    Join Date
    Jun 2016
    Posts
    20
    Plugin Contributions
    0

    Default Re: Looking for guidelines to solve the problem

    Thank you for getting back at me so quickly, it's the stock responsive template. I just added a bunch of plugins and tawk.to.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,400
    Plugin Contributions
    87

    Default Re: Looking for guidelines to solve the problem

    First, I'm hoping that you've made a 'clone' (see Clone a Template) of the built-in responsive_classic template for your store!

    In either case, you can correct that issue by editing your template's /common/html_header.php. Find this section (towards the bottom-middle of that file):
    Code:
    /** CDN for jQuery core **/
    ?>
    
    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="https://code.jquery.com/jquery-3.4.0.min.js" integrity="sha256-BJeo0qm959uMBGb65z40ejJYGSgR7REI4+CW1fNKwOg=" crossorigin="anonymous"%3E%3C/script%3E'));</script>
    <?php if (file_exists(DIR_WS_TEMPLATE . "jscript/jquery.min.js")) { ?>
    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>
    <?php } ?>
    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js','template_default', $current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>
    and change that to:
    Code:
    /** CDN for jQuery core **/
    ?>
    
    <script type="text/javascript" src="https://code.jquery.com/jquery-3.4.0.min.js" integrity="sha256-BJeo0qm959uMBGb65z40ejJYGSgR7REI4+CW1fNKwOg=" crossorigin="anonymous"></script>
    That will make that issue 'go away' but will prevent your store from operating should the jQuery CDN be unavailable.

 

 

Similar Threads

  1. Replies: 4
    Last Post: 7 Oct 2010, 03:59 AM
  2. Guidelines for a mod
    By RickF in forum Contribution-Writing Guidelines
    Replies: 14
    Last Post: 6 Jun 2010, 06:16 AM
  3. A problem to solve?
    By gele76 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 Jan 2010, 02:16 PM
  4. Looking to change the layout for the page that shows the listing for all products
    By webmiss in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 2 Aug 2007, 12:09 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR