Hi, I'm designing a theme and in my _Root.Head.cshtml file I have the script file ordered as they should be, but when I run the site they are reordered in the wrong order. Can someone tell me what I need to do to get this ordered correctly? This is how I have them:
All the Javascript and css files are called in the header which is acting as blocking element for DOM elements and increasing the page load time. It is really critical as far as performance of nopcommerce is concerned.
I tried adding all css and js files in the footer by that didn't work at all(If possible, then do comment). They were still showing up in head section only.
I searched and found a way by using "async and defer" in js & css reference. It's something like this : <script async src="~/some_folder/jquery.js" type="text/javascript"></script>.
But in nopcommerce, the reference is given as: Html.AddScriptParts("~/some_folder/jquery.js")..
How can i add "async" in nopcommerce ? Can it done this way: Html.AddScriptParts("~/some_folder/jquery.js async")
If not, Is there some other ways to achieve that ?
Thanks in advance. The answers will be deeply appreciated....
I have also faced one more issue in order details where in, an order cannot be cancelled by the customers. I have posted in forum . Here is the url : https://www.nopcommerce.com/boards/t/41807/cancel-order-feature-for-customers-in-nopcommerce.aspx
Do have a look of it & reply. If out of box, then pls create a work item for the same.