Skip to content

Instantly share code, notes, and snippets.

View gnujoow's full-sized avatar
👋

KIM, WOOJUNG gnujoow

👋
View GitHub Profile
var param = "chapterNo=0101&current_frame_count=1&currentPosition="+ 13245+'&courseCd=HLSC60332&takeCourseSeq=40116154&_'+$.now();
$.get('ProgressSave.aspx',param,function(data){
if(data=="N"){
alert('다른 위치에서 로그인 되었습니다. 학습이 종료되며 로그아웃됩니다.');
top.close();
}
});
@paulirish
paulirish / what-forces-layout.md
Last active February 9, 2025 17:33
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent