There is a web page that naturally has styles and scripts. When clearing the cache and full page reload (Ctrl + F5) jQuery incorrectly determines the height() and width() of the td element in the table loaded via AJAX, but with subsequent normal page reloads (F5) everything works as it should. There are no errors in the chrome debugger. jQuery latest version. Used plugin Tablesorter 2.0

PS By analogy with td styles also float when dragging sortable elements from the jQueryUI plugin.

Please tell me which direction to dig.

  • In the setting Tablesorter look for an error. - Vladimir Klykov
  • I don’t think it’s about him, I’ve tried the default settings - the story is identical. But it turned out that jQueryUI also has a similar jamb. All the same, it is jQuery's suspicions - Yuri Stolov
  • Conducted an experiment with pure javascript and this is what issued: {javascriptHeight: 22, javascriptWidth: 300, jqueryHeight: 21, jqueryWidth: 293} and when updating already: {javascriptHeight: 22, javascriptWidth: 300, jqueryHeight: 22, jqueryWidth: 300 Yuri Stolov
  • in general, I replaced height() with offsetHeight and width() with offsetWidth , the flight is normal, but in the course of the glitch it’s still somewhere deep in jQuery to look for - Yuri Stolov
  • At what point are the sizes calculated? Try on $ (window) .load () - yolosora

0