OSDN Git Service

BugTrack/2474 Fix web browser no response on heavy DOM operations
authorumorigu <umorigu@gmail.com>
Thu, 31 May 2018 19:58:10 +0000 (04:58 +0900)
committerumorigu <umorigu@gmail.com>
Thu, 31 May 2018 19:58:10 +0000 (04:58 +0900)
* Some web browsers freeze on 100,000 DOM operations
* Solution: list and filelist plugin - Stop JavaScript passage logic
  * Generally list plugin result will not be cached
  * We can calc and output passages directly (BugTrack/2447)

lib/func.php

index 892ead2..18a6dfa 100644 (file)
@@ -538,7 +538,7 @@ function page_list($pages, $cmd = 'read', $withfilename = FALSE)
                $r_page  = pagename_urlencode($page);
                $s_page  = htmlsc($page, ENT_QUOTES);
                $str = '   <li><a href="' . $href . $r_page . '">' .
-                       $s_page . '</a>' . get_passage_html_span($page);
+                       $s_page . '</a> ' . get_pg_passage($page);
                if ($withfilename) {
                        $s_file = htmlsc($file);
                        $str .= "\n" . '    <ul><li>' . $s_file . '</li></ul>' .