Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

GTmetrix - jquery


Recommended Posts

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)

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)

Link to comment
Share on other sites

@@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

Link to comment
Share on other sites

@@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

Link to comment
Share on other sites

@@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

Link to comment
Share on other sites

@@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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...