Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

    Default Couple of issues affecting page load speed

    v1.5.5f westminster_new template

    1. Google Lighthouse is suggesting DOCTYPE is causing issues - (likely because it is not HTML5 ?? - is upgrading the only way to resolve this?).
    HTML Code:
    Browser Compatibility
    Page lacks the HTML doctype, thus triggering quirks-modeExpected publicId to be an empty string
    Specifying a doctype prevents the browser from switching to quirks-mode
    This is my DOCTYPE: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?>>

    2. Can I simply change this to 'yes' without affecting the site?;
    HTML Code:
    Best practicesThese items highlight common accessibility best practices.
    [user-scalable="no"] is used in the <meta name="viewport"> element or the [maximum-scale] attribute is less than 5.
    Disabling zooming is problematic for users with low vision who rely on screen magnification to properly see the contents of a web page. Learn more.
    Failing Elements
    meta
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    3. Can this javascript be upgraded to a newer version? (or does this require a ZC version upgrade?);
    HTML Code:
    Trust and Safety
    Includes front-end JavaScript libraries with known security vulnerabilities 4 vulnerabilities detected
    Some third-party scripts may contain known security vulnerabilities that are easily identified and exploited by attackers. Learn more.
    Library Version: [email protected]	
    Vulnerability Count: 4
    Highest Severity: Medium
    4. Avoid document.write()
    For users on slow connections, external scripts dynamically injected via `document.write()` can delay page load by tens of seconds. Learn more.
    URL Location: https://www.dazzlerscliponearrings.com.au
    line: 32
    HTML Code:
    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"%3E%3C/script%3E'));</script>
    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="includes/templates/westminster_new/jscript/jquery.min.js"%3E%3C/script%3E'));</sc
    Thanks,
    Mike

  2. #2
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Couple of issues affecting page load speed

    Addressing only item 3 here. The version can be upgraded to whatever works for your existing content. It is possible that when upgrading the jQuery version that other jQuery related software may not work or may not work correctly and it/that may need modification/upgrade to work within the newere jQuery version.

    That said, more recent versions of Zen Cart adopt newer versions of jQuery to have the built in tools already compatible. Testing/revision should be done on a test site that is not your live site. Once the issues have been worked out then they can/should be carried over. Don't mess with your live site if it is functional. Such applies to addressing the other issues as well.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Couple of issues affecting page load speed

    Regarding #4. The code it's complaining about is just fallback code which only gets triggered if jQuery hasn't already been loaded. Therefore it's harmless, especially if you do actually already have local jquery files installed.
    That said, since everyone seems to think Google is God and therefore should be obeyed at all costs, go ahead and remove those document.write lines. The worst that happens is if you screw things up on your site there won't be any fallbacks to save you from your mistake. Google seems to like that.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 16
    Last Post: 28 Jan 2020, 08:44 PM
  2. v154 Site Page Load Speed Optimisation
    By lloyd_borrett in forum General Questions
    Replies: 9
    Last Post: 13 Nov 2015, 11:43 PM
  3. products + attributes in cart affecting page load time
    By MyLibros.com in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 11 Oct 2008, 02:31 AM
  4. Is there any way to speed up this page load?
    By Stuff4Toys in forum General Questions
    Replies: 1
    Last Post: 17 Jun 2008, 04:09 PM
  5. Need some expert help with a couple of main page issues!
    By debtag in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 5 Mar 2008, 02:26 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