##// END OF EJS Templates
get rid of most slowdown at notebook loading....
get rid of most slowdown at notebook loading. 1) Do not setOption('mode',new_mode) on CM if new and old mode are the same. It triggert **a lot** of calculation of bounding box in the end. 2) Do **not** select cell when loading the notebook it triggers **a lot** of CM even that check visible things and so on and so forth. So add a option to add_cell_at_index not to select it 3) jQuery $.attr has some magics, but has a slight overhead on real native ELEM.setAttribute DOM method. Seem slight improvement when loads of PNGs on one page

File last commit:

r11033:fa36e98f
r13573:417940c5
Show More
toolbar.less
33 lines | 586 B | text/x-less | LessCssLexer
.toolbar {
padding: 0px 10px;
margin-top: -5px;
select, label {
width: auto;
height: @baseLineHeight + 6px;
vertical-align:middle;
margin-right:2px;
margin-bottom:0px;
display: inline;
font-size: 92%;
margin-left:0.3em;
margin-right:0.3em;
padding: 0px;
padding-top: 3px;
}
.btn {
padding: 2px 8px;
}
}
.toolbar .btn-group {
margin-top: 0px;
}
.toolbar-inner {
border: none !important;
.box-shadow(none) !important;
}
#maintoolbar {
margin-bottom: 0px;
}