I wanted to share some things I've been working on. I moved the css/js loader code that loads the jscript files to the tpl_main_page.php just before the </body> tag to load the main content of the page sooner before the js files, see code below. note that you have also have to move any script for jquery functions to just below this js loader code for the jquery to work.
<?php
/**
* load the jscript loader files, this used to be combined with the css loader files in the html header file, moved here to load some of the page faster
*/
foreach($files['jscript'] as $file)
if($file['include']) {
include($file['src']);
} else if(!$RI_CJLoader->get('minify_js') || $file['external']) {
echo '<script type="text/javascript" src="'.$file['src'].'"></script>'."\n";
} else {
echo '<script type="text/javascript" src="min/?f='.$file['src'].'&'.$RI_CJLoader->get('minify_time').'"></script>'."\n";
}
?>
example jquery:
<!-- Start css3menu BODY section -->
<script>
$(document).ready(function(){
$(".pressed").click(function(){
$(".DropDownMenu").toggle();
});
$(".HideDropDownMenu").click(function(){
$(".DropDownMenu").hide();
});
$(".onerow-fluid").click(function(){
$(".DropDownMenu").hide();
});
$(".fancy_menu_close").click(function(){
$(".DropDownMenu").hide();
});
});
</script>
I also created an autoloader with if and else statements to load and minify my responsive css files depending on the mobile detect code or if display mode links are used (mobile, tablet and desktop display modes), I also use a css drop down menu at the top of the page to select links and display modes.
If anyone is interested, I added code to have a optional 2nd phone number field during the checkout process, which can also be changed for both shipping and billing addresses, and both phone numbers are displayed under the addresses on the checkout page, in the order confirmation emails, and everywhere else the addresses are shown. Useful for when you sell big expensive items that require delivery scheduling.
Since I only use the force checkout without account option, I changed the filename of no_account.php to begin_checkout.php, and changed the My Account texts to My Profile, and other similar changes.
And with the responsive detect code I'm able to make changes to the checkout_stacked file(s) and to have a different file for mobile view which only has one column in the checkout page, and I use the fec split view option for desktop mode and tablet view when in landscape view, and my begin_checkout page has just one column for mobile view (instead of the contact details fields being on the right side).
So if anyone wants the code let me know.