sitecore_suggested_test_indexに多数のレコードがあると、Experience Editorでページを開くのに時間がかかる場合があります。
この問題を解決するには、次のいずれかを検討してください:
canExecute: function (context) {
var testCount = context.app.canExecute("Optimization.SuggestedTests.Count", context.currentContext);
var outputEl = $("a[data-sc-id='Suggested-Tests'] span");
var counterSpan = "<span> (" + testCount + ")</span>";
canExecute: function (context) {
var self = this;
self.setLoadingAnimation(true);
context.app.canExecute("Optimization.SuggestedTests.Count", context.currentContext, function (testCount) {
self.setLoadingAnimation(false);
self.fillupSuggestedTestsCount(testCount);
});
canExecute: function (context) { var testCount = 0;
var outputEl = $("a[data-sc-id='Suggested-Tests'] span");
var counterSpan = "";
canExecute: function (context) {
var self = this;
// self.setLoadingAnimation(true);
// context.app.canExecute("Optimization.SuggestedTests.Count", context.currentContext, function (testCount) {
// self.setLoadingAnimation(false);
// self.fillupSuggestedTestsCount(testCount);
// });
self.fillupSuggestedTestsCount(0);
<setting name="ContentTesting.AutomaticContentTesting.Enabled" value="false" />