Waqar Chaudhry
Spectator
Post count: 5
Been thanked: 0 times
#24788 |

Hi there Denzel,

Appreciate the comments but I think the point of support is that you guys help us which is the reason people buy premium themes.
Some guidance will be appreciated.
My homepage currently is set to using a js and css concatenator using some WordPress Caching plugin but the source code looks ugly and it still doesn’t look nice.

As far as i know, all I am using is the animate on the menu bar and the bootstrap loader for the home page.
What possible solutions can you recommend to clean it up?
Also – what is the admin-ajax.php script? What does it do as it seems to take a long time to run according to some sources that check site speed?
Is it needed on a homepage?

Here is the jss and css links for the homepage.

<!– <link rel=’stylesheet’ id=’animatecss-css’ href=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/animate-css/animate-custom.css?ver=4.4.2′ type=’text/css’ media=’all’ /> –>
<!– <link rel=’stylesheet’ id=’fontawesomecss-css’ href=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/fontawesome/css/font-awesome.css?ver=4.4.2′ type=’text/css’ media=’all’ /> –>
<!– <link rel=’stylesheet’ id=’maincss-css’ href=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/style.css?ver=4.4.2′ type=’text/css’ media=’all’ /> –>
<!– <link rel=’stylesheet’ id=’mediacss-css’ href=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/css/media.css?ver=4.4.2′ type=’text/css’ media=’all’ /> –>
<!– <link rel=’stylesheet’ id=’bootstrapcss-css’ href=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/bootstrap/css/bootstrap.css?ver=4.4.2′ type=’text/css’ media=’all’ /> –>
<!– <link rel=’stylesheet’ id=’bootstrapcsstheme-css’ href=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/bootstrap/css/bootstrap-theme.css?ver=4.4.2′ type=’text/css’ media=’all’ /> –>
<!– <link rel=’stylesheet’ id=’siteorigin-panels-front-css’ href=’http://accident-management-consultants.co.uk/wp-content/plugins/siteorigin-panels/css/front.css?ver=2.3.1′ type=’text/css’ media=’all’ /> –>
<!– <link rel=’stylesheet’ id=’dynamic-css-css’ href=’http://accident-management-consultants.co.uk/wp-admin/admin-ajax.php?action=evolve_dynamic_css&ver=4.4.2′ type=’text/css’ media=’all’ /> –>
<!– <link rel=’stylesheet’ id=’shortcode-css’ href=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/css/shortcodes.css?ver=4.4.2′ type=’text/css’ media=’all’ /> –>
<!– <link rel=’stylesheet’ id=’animations-css’ href=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/css/animations.css?ver=4.4.2′ type=’text/css’ media=’all’ /> –>
<!– <link rel=’stylesheet’ id=’redux-google-fonts-evl_options-css’ href=’http://fonts.googleapis.com/css?family=Roboto%3A400&ver=1456616145′ type=’text/css’ media=’all’ /> –>
<!– <link rel=’stylesheet’ id=’wpgmaps-style-css’ href=’http://accident-management-consultants.co.uk/wp-content/plugins/wp-google-maps/css/wpgmza_style.css?ver=6.3.05′ type=’text/css’ media=’all’ /> –>
<link rel=”stylesheet” type=”text/css” href=”//accident-management-consultants.co.uk/wp-content/cache/wpfc-minified/6bfcea28015033f68b256d843119286f/1456618665index.css” media=”all”/>
<script src=’//accident-management-consultants.co.uk/wp-content/cache/wpfc-minified/cb666a017f59c078e1da3ae1379531d0/1456618666index.js’ type=”text/javascript”></script>
<!– <script type=’text/javascript’ src=’http://accident-management-consultants.co.uk/wp-includes/js/jquery/jquery.js?ver=1.11.3′></script> –>
<!– <script type=’text/javascript’ src=’http://accident-management-consultants.co.uk/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1′></script> –>
<!– <script type=’text/javascript’ src=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/tipsy.js?ver=4.4.2′></script> –>
<!– <script type=’text/javascript’ src=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/fields.js?ver=4.4.2′></script> –>
<!– <script type=’text/javascript’ src=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/jquery.infinite-scroll.min.js?ver=4.4.2′></script> –>
<!– <script type=’text/javascript’ src=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/jquery.scroll.pack.js?ver=4.4.2′></script> –>
<!– <script type=’text/javascript’ src=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/supersubs.js?ver=4.4.2′></script> –>
<!– <script type=’text/javascript’ src=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/superfish.js?ver=4.4.2′></script> –>
<!– <script type=’text/javascript’ src=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/hoverIntent.js?ver=4.4.2′></script> –>
<!– <script type=’text/javascript’ src=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/buttons.js?ver=4.4.2′></script> –>
<!– <script type=’text/javascript’ src=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/ddslick.js?ver=4.4.2′></script> –>
<!– <script type=’text/javascript’ src=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/jquery.flexslider.js?ver=4.4.2′></script> –>
<!– <script type=’text/javascript’ src=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/jquery.flexslider-min.js?ver=4.4.2′></script> –>
<!– <script type=’text/javascript’ src=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/jquery.prettyPhoto.js?ver=4.4.2′></script> –>
<!– <script type=’text/javascript’ src=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/modernizr.js?ver=4.4.2′></script> –>
<!– <script type=’text/javascript’ src=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/jquery.carouFredSel.js?ver=4.4.2′></script> –>
<!– <script type=’text/javascript’ src=’http://accident-management-consultants.co.uk/wp-content/themes/evolve-plus/library/media/js/bootstrap/js/bootstrap.js?ver=4.4.2′></script> –>

Then further below the page, there is additional script – here is one example

/* —————— PREV & NEXT BUTTON FOR FLEXSLIDER (YOUTUBE) —————— */
jQuery(‘.flex-next, .flex-prev’).click(function() {
playVideoAndPauseOthers(jQuery(this).parents(‘.flexslider, .t4ps-slider’));
});
function onPlayerStateChange(frame, slider) {
return function(event) {
if (event.data == YT.PlayerState.PLAYING) {
jQuery(slider).flexslider(“pause”);
}
if (event.data == YT.PlayerState.PAUSED) {
jQuery(slider).flexslider(“play”);
}
if (event.data == YT.PlayerState.BUFFERING) {
jQuery(slider).flexslider(“pause”);
}
}
}
//
//
//
// YouTube & Vimeo

There is also one for FlexSlider, Prev/Next buttons for FlexSlider, Testimonials, Sticky Headers etc … All of which I’m sure I’ve disabled from the main evolve Customiser area.

Surely, if its disabled in the Customiser area for the Theme in question – it shouldnt technically appear in your homepage – so why is it there ?

Regards

Waqar