Skip to content

Commit e4b14a9

Browse files
authored
Perf fixes (microsoft#1227)
1 parent 16c9dfa commit e4b14a9

File tree

3 files changed

+1
-23
lines changed

3 files changed

+1
-23
lines changed

source/nodejs/adaptivecards-site/themes/adaptivecards/layout/_partial/footer.ejs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,4 @@
3636

3737
<%- js('js/script') %>
3838

39-
40-
41-
<script>
42-
43-
// Used to toggle the menu on small screens when clicking on the menu button
44-
function toggleNav() {
45-
var x = document.getElementById("nav");
46-
if (x.className.indexOf("w3-show") == -1) {
47-
x.className += " w3-show";
48-
} else {
49-
x.className = x.className.replace(" w3-show", "");
50-
}
51-
}
52-
</script>
39+
<script type="text/javascript"> var appInsights=window.appInsights||function(a){ function b(a){c[a]=function(){var b=arguments;c.queue.push(function(){c[a].apply(c,b)})}}var c={config:a},d=document,e=window;setTimeout(function(){var b=d.createElement("script");b.src=a.url||"https://az416426.vo.msecnd.net/scripts/a/ai.0.js",d.getElementsByTagName("script")[0].parentNode.appendChild(b)});try{c.cookie=d.cookie}catch(a){}c.queue=[];for(var f=["Event","Exception","Metric","PageView","Trace","Dependency"];f.length;)b("track"+f.pop());if(b("setAuthenticatedUserContext"),b("clearAuthenticatedUserContext"),b("startTrackEvent"),b("stopTrackEvent"),b("startTrackPage"),b("stopTrackPage"),b("flush"),!a.disableExceptionTracking){f="onerror",b("_"+f);var g=e[f];e[f]=function(a,b,d,e,h){var i=g&&g(a,b,d,e,h);return!0!==i&&c["_"+f](a,b,d,e,h),i}}return c }({ instrumentationKey:"bd0c4f36-dd0f-4984-8f32-32cb44d6055a" }); window.appInsights=appInsights,appInsights.queue&&0===appInsights.queue.length&&appInsights.trackPageView();</script>

source/nodejs/adaptivecards-site/themes/adaptivecards/layout/_partial/head.ejs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
2424
<%- open_graph({twitter_id: theme.twitter, google_plus: theme.google_plus, fb_admins: theme.fb_admins, fb_app_id: theme.fb_app_id}) %>
2525

26-
27-
<script type="text/javascript"> var appInsights=window.appInsights||function(a){ function b(a){c[a]=function(){var b=arguments;c.queue.push(function(){c[a].apply(c,b)})}}var c={config:a},d=document,e=window;setTimeout(function(){var b=d.createElement("script");b.src=a.url||"https://az416426.vo.msecnd.net/scripts/a/ai.0.js",d.getElementsByTagName("script")[0].parentNode.appendChild(b)});try{c.cookie=d.cookie}catch(a){}c.queue=[];for(var f=["Event","Exception","Metric","PageView","Trace","Dependency"];f.length;)b("track"+f.pop());if(b("setAuthenticatedUserContext"),b("clearAuthenticatedUserContext"),b("startTrackEvent"),b("stopTrackEvent"),b("startTrackPage"),b("stopTrackPage"),b("flush"),!a.disableExceptionTracking){f="onerror",b("_"+f);var g=e[f];e[f]=function(a,b,d,e,h){var i=g&&g(a,b,d,e,h);return!0!==i&&c["_"+f](a,b,d,e,h),i}}return c }({ instrumentationKey:"bd0c4f36-dd0f-4984-8f32-32cb44d6055a" }); window.appInsights=appInsights,appInsights.queue&&0===appInsights.queue.length&&appInsights.trackPageView();</script>
28-
2926
<% if (theme.rss){ %>
3027
<link rel="alternate" href="<%- theme.rss %>" title="<%= config.title %>" type="application/atom+xml">
3128
<% } %>

source/nodejs/adaptivecards-visualizer/src/monaco-loader.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ function loadMonacoEditor(jsonSchema, callback) {
3030
}
3131
);
3232

33-
window.addEventListener('resize', function () {
34-
monacoEditor.layout();
35-
});
36-
37-
monacoEditor.layout();
38-
3933
callback();
4034
});
4135
}

0 commit comments

Comments
 (0)