Hi Everyone,
A number of our customers have had issues with Ecommerce Edition slowing down their site, especially when you setup your domain. There have also been recent reports that FireFox may be effected as well.
Much of this has to do with the theme trying to include a file called HtmlDecodeStripped.js.
This file is important as it encodes special characters in product reviews before displaying the review in HTML format.
The issue has to do with how we included the file in Ecommerce Edition.
The best practice in NetSuite is to use relative URLs. If you hardcode links to "http://shopping.netsuite.com/c.123456/site/....", when you setup your domain in NetSuite, sure NetSuite will translate that shopping.netsuite.com URL to whatever your domain is, but that slows down how fast pages load and we all know that speed is key.
We can actually replace the following code snippet in your theme:
if (parent.location.protocol == 'https:') {
//alert('https');
newScript.src = 'https://shopping.netsuite.com/c.' + testDriveString + '/site/HtmlDecodeStripped.js';
} else {
//alert('http');
newScript.src = 'http://shopping.netsuite.com/c.' + testDriveString + '/site/HtmlDecodeStripped.js';
}
with:
newScript.src = '/site/HtmlDecodeStripped.js';
To edit your theme, assuming the Administrator Role, go to Setup -> Web Site -> Themes and edit your theme.
Thanks,