зеркало из https://github.com/mozilla/buddyup.git
Bug 1154259 - Clicking a KB article can take a very long time
This commit is contained in:
Родитель
e34cd7be27
Коммит
555136e5c6
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
/* global Settings, Utils */
|
||||
/* global Event, Settings, Utils */
|
||||
|
||||
(function(exports) {
|
||||
|
||||
|
@ -12,8 +12,18 @@
|
|||
kb_url += parameters.slug;
|
||||
kb_url += '?mobile=1&minimal=1';
|
||||
|
||||
document.getElementById('kb-view').src = kb_url;
|
||||
}
|
||||
init();
|
||||
var kb_view = document.getElementById('kb-view');
|
||||
kb_view.addEventListener('load', function() {
|
||||
var event = new Event('request-complete');
|
||||
document.dispatchEvent(event);
|
||||
});
|
||||
|
||||
var event = new Event('request-start');
|
||||
document.dispatchEvent(event);
|
||||
kb_view.src = kb_url;
|
||||
|
||||
|
||||
}
|
||||
|
||||
window.addEventListener('load', init);
|
||||
})(window);
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
<script src="js/libs/font_size_utils.js" defer></script>
|
||||
<script src="js/settings.js"></script>
|
||||
<script src="js/utils.js"></script>
|
||||
<script src="js/loading_indicator.js"></script>
|
||||
<script src="js/kb_controller.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Загрузка…
Ссылка в новой задаче