대답은 여전히 유효하지만 도구 사용 편의성이 약간 떨어 졌기 때문에 다음과 같은 해결 방법을 사용하여 Glimpse HUD가로드 될 때까지 $(document).ready()
에 대한 모든 호출을 지연시킵니다. 엿보기가 꺼져 있으면 지연이 없습니다.
// workaround for the problem when Glimpse does not correctly show AJAX requests that happen before the HUD is initialized
(function() {
var origDocumentReady = $.fn.ready;
var checkFinished = false;
$.fn.ready = function (delegate) {
var timerId = -1;
var counter = 0;
var check = function() {
if (counter++ > 50) //~2.5sec - if still not loaded, give up
checkFinished = true;
if (checkFinished || document.getElementById("glimpse-hud-section-input-ajax")) {
checkFinished = true;
window.clearInterval(timerId);
delegate();
}
}
origDocumentReady(function() {
if (!checkFinished && typeof glimpse === typeof undefined)
checkFinished = true;
if (checkFinished)
delegate();
else
timerId = window.setInterval(check, 50);
});
}
})();
여기 해결 방법이 있다는 것을 알았지 만, 우리가 속성을 고칠 수 있는지보고 싶어합니다. 피드백을 보내거나 피칭에 관심이 있으시면 다음 https://github.com/Glimpse/Glimpse/issues/397을 참조하십시오. – anthonyv