개발을 할 때 간혹 뒤로가기만으로 데이터를 처리하기가 난감할 때가 있다. ex) 수정페이지에 들어가서 데이터 수정을 한 후 뒤로가기 시, 뿌려지는 데이터가 변경 전 데이터일 때 이럴 경우에 어떤식으로 처리해야 하는지 코드를 보며 살펴보겠다. pageshow $(function () { if (document.addEventListener) { window.addEventListener('pageshow', function (event) { /** 뒤로가기 호환 */ console.log(performance.getEntriesByType("navigation")[0].type); if (event.persisted || performance.getEntriesByType("navigation")[0].t..