Guest Posted February 12, 2015 Posted February 12, 2015 Hi Just trying to get our site running a little more efficiently (BS234) and notice that under Defer parsing of JavaScript gives a score of E(52) http://120.138.17.237/~grandp/ext/jquery/ui/jquery-ui-1.10.4.min.js (195.1KiB) http://120.138.17.237/~grandp/ext/jquery/jquery-1.11.1.min.js (85.7KiB) http://120.138.17.237/~grandp/ (4.5KiB of inline JavaScript) http://120.138.17.237/~grandp/ext/jquery/jquery.scroller.min.js (1.2KiB) Is it pos to move these, and is http://120.138.17.237/~grandp/ext/jquery/jquery-1.11.1.min.js (85.7KiB) still needed Many thanks grandpa (BS234)
burt Posted February 12, 2015 Posted February 12, 2015 /ext/jquery/ui/jquery-ui-1.10.4.min.js (195.1KiB) /ext/jquery/jquery-1.11.1.min.js (85.7KiB) /ext/jquery/jquery.scroller.min.js (1.2KiB) 1 can be removed 2 is required 3 must be something you've added
Guest Posted February 13, 2015 Posted February 13, 2015 @@burt Hi Burt Many thanks for that. When I deleted No1 ( /ext/jquery/ui/jquery-ui-1.10.4.min.js (195.1KiB) I had a prob with admin. Took a look and it appears that No1 might be needed for admin to render correctly, however I may have missed an update to the admin somewhere. Many thanks Grandpa
Guest Posted February 13, 2015 Posted February 13, 2015 @@burt Have looked further Hi Burt Many thanks for that. When I deleted No1 ( /ext/jquery/ui/jquery-ui-1.10.4.min.js (195.1KiB) I had a prob with admin. Took a look and it appears that No1 might be needed for admin to render correctly, however I may have missed an update to the admin somewhere. However when I look at the source code using FF on the index page I see " <script src="ext/jquery/jquery-1.11.1.min.js"></script><!-- font awesome --><link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"><script src="ext/jquery/ui/jquery-ui-1.10.4.min.js"></script> " I have no idea where this comes from as there is nothing showing in the template_top.php file (Maybe its not worth worrying about) Many thanks Grandpa
burt Posted February 13, 2015 Posted February 13, 2015 Sorry I was not clear. You need to remove the call to the file from the shop template_top.php Do not remove the actual file.
Guest Posted February 14, 2015 Posted February 14, 2015 @@burt Ive been trying to find the call in template top but so far I can't see it, is there anywhere else it could pos be. Heres my file Released under the GNU General Public License */ $oscTemplate->buildBlocks(); if (!$oscTemplate->hasBlocks('boxes_column_left')) { $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth()); } if (!$oscTemplate->hasBlocks('boxes_column_right')) { $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth()); } ?> <!DOCTYPE html> <html <?php echo HTML_PARAMS; ?>> <head> <meta charset="<?php echo CHARSET; ?>"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link href="ext/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link href="custom.css" rel="stylesheet"> <link href="user.css" rel="stylesheet"> <!--[if lt IE 9]> <script src="ext/js/html5shiv.js"></script> <script src="ext/js/respond.min.js"></script> <script src="ext/js/excanvas.min.js"></script> <![endif]--> <script src="ext/jquery/jquery-1.11.1.min.js"></script> <!-- font awesome --> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> <?php echo $oscTemplate->getBlocks('header_tags'); ?> </head> <body> <?php echo $oscTemplate->getContent('navigation'); ?> <div id="bodyWrapper" class="<?php echo BOOTSTRAP_CONTAINER; ?>"> <div class="row"> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <div id="bodyContent" class="col-md-<?php echo $oscTemplate->getGridContentWidth(); ?> <?php echo ($oscTemplate->hasBlocks('boxes_column_left') ? 'col-md-push-' . $oscTemplate->getGridColumnWidth() : ''); ?>"> Many thanks Grandpa
burt Posted February 14, 2015 Posted February 14, 2015 Most likely called by a Header Tag ... admin > modules > header tags
Guest Posted February 14, 2015 Posted February 14, 2015 @@burt Many thanks That did the trick. How the blazes do you know all this from the scant info that gets provided. Wish I had quarter of your knowledge. Cheers Grandpa
Recommended Posts
Archived
This topic is now archived and is closed to further replies.