1. Field of the Invention
The present invention relates to an information processing apparatus, a data acquisition method, and a program.
2. Description of the Related Art
With the development of information communication technology, a network bandwidth is being widened. Accordingly, the volume of content transmitted over a wide area network such as the Internet is also on the increase. Also, a program for performing script processing is embedded in many of the homepages published on the wide area network, and the page structures are modified so that dynamic processing can be performed on the homepages. However, when reading large content or performing script processing, a long time is taken until a homepage is fully displayed. In view of such issue, there is developed technology for caching, in advance, information published on the wide area network such as the Internet (hereinafter, WWW information), and for displaying the WWW information cached in advance when access is requested by a user. In relation to this technology, JP-A-2004-280405 discloses technology for efficiently caching the WWW information.
However, it is difficult to appropriately select WWW information to be cached in advance. For example, if all the pieces of the WWW information of the link destinations described in a displayed page are to be cached, acquisition itself of the WWW information will take a long time in a case there are many link destinations. Also, large amounts of cache memory will be used. Furthermore, most of the communication bandwidth will be taken up for the acquisition of the WWW information to be cached. For these reasons, to quickly display a page, it is necessary not only to cache the WWW information, but also to further refine the WWW information acquisition method.
The WWW information includes information for performing display control of a page (hereinafter, display control information). Also, the display control information includes information that defines the layout of a page (hereinafter, layout information), information for making a client terminal perform script processing (hereinafter, script information), and the like. However, the layout information and the script information mentioned above may be treated as separate data from the display control information mentioned above. In this case, link information between the display control information and the layout information and link information between the display control information and the script information are included in the display control information. Therefore, practically, the layout information and the script information are included in the display control information.
In many cases, the display control information is written in a structured language such as an HTML (HyperText Markup Language) and an XML (eXtensible Markup Language), for example. These structured languages adopt a description method which defines a structural unit by using tags. Accordingly, the display control information is structured with a section delimited by the tags as the structural unit. Also, in many cases, the layout information mentioned above is expressed in style sheets such as CSS (Cascading Style Sheets) and the like. Furthermore, in many cases, the script information mentioned above is written in a script language such as JavaScript (registered trademark; hereinafter, abbreviated as JS), ECMAScript, VBScript (registered trademark), and the like.
As described, the display control information (1) includes the layout information and the script information, and (2) is structured based on specific structural units. Normally, at the time of displaying the WWW information by a WWW browser or the like, the display control information is analysed, and the execution order of display processing or the acquisition order of data is determined with the structural units included in the display control information as a reference. Next, the structural units are linked to each other by a WWW browser or the like, and structured data for display control, called DOM (Document Object Model), is created. Then, acquisition of data, display of data, and the like are performed based on the DOM created by the WWW browser or the like (see
At the time of building the DOM, if the script information is included in the display control information, data acquisition or display processing is delayed due to the sequential nature of script processing. Accordingly, even if sufficiently wide bandwidth is reserved for the wide area network, when a page is to be displayed based on the display control information including the script information, there is a certain amount of wait time until the page is displayed. Particularly, if the steps of the script processing are nested, the wait time is further increased.
In light of the foregoing, it is desirable to provide an information processing apparatus, a data acquisition method, and a program which are new and improved, and which are capable of reducing the display delay of a page caused by the sequential nature of the script processing and of quickly displaying a well laid-out page.
According to an embodiment of the present invention, there is provided an information processing apparatus which includes a separation distance detection unit that detects a separation distance between an operating tool in contact with or in proximity to a display screen and the display screen, a link selection unit that selects, in a case the separation distance detected by the separation distance detection unit is a specific threshold or less, a link destination whose display is at least partially located for a specific time in a region of the display screen corresponding to the operating tool, among at least one link destination displayed on the display screen, a data prefetch unit that acquires, before the link destination is selected by the operating tool, information relating to a layout of a display screen and display control data including at least a structural unit in which the information relating to a layout of a display screen is written, the display control data and the information relating to a layout of a display screen existing at the link destination selected by the link selection unit, a structure analysis unit that analyses the display control data and extracts structural units included in the display control data, in a case the link destination whose display control data has been acquired by the data prefetch unit is selected by the operating tool, a first structuring unit that generates, in a case the link destination whose display control data has been acquired by the data prefetch unit is selected by the operating tool, first structured data for display control by mutually linking, except for a structural unit in which information relating to display control involving script processing is written, the structural units including at least the structural unit in which the information relating to a layout of a display screen is written, among the structural units extracted by the structure analysis unit, a second structuring unit that generates, in a case the link destination whose display control data has been acquired by the data prefetch unit is selected by the operating tool, second structured data for display control by mutually linking the structural units, and a display control unit that displays a display screen by using the first structured data generated by the first structuring unit, and, at a stage the second structured data is generated by the second structuring unit, redisplays the display screen by using the second structured data.
The information processing apparatus may further include a connection establishment unit that establishes a connection to the link destination. The link selection unit may further select another link destination that is located in a specific range with the link destination whose display is at least partially located in the region as a centre. The connection establishment unit may establish a TCP connection to the other link destination that the link selection unit further selected, before the other link destination is selected by user operation.
In a case multiple link destinations which are a result of search based on key information are displayed on the display screen, a specific number of the link destinations may be selected from a top of the link destinations regardless of the separation distance.
The separation distance detection unit may sense a change in capacitance between the operating tool and a conductive layer provided on the display screen, and may detect the separation distance.
The separation distance detection unit may include an optical sensor that detects reflected light which is light emitted from a light source toward the operating tool reflected by the operating tool, and an area calculation unit that calculates, from intensity distribution of the reflected light detected by the optical sensor, an area of an image formed on the display screen by the operating tool. The link selection unit may select, in a case the area corresponding to the separation distance is a specific threshold or less, the link destination whose display is at least partially located in the area for a specific time.
The link selection unit may perform, according to a specific standard, ranking of the other link destination selected, with respect to TCP connection establishment.
The link selection unit may give the link destination which has been selected specific times or more a higher place in a ranking for establishment.
The link selection unit may give a higher place in the ranking to the link destination whose round-trip time is a specific threshold or more.
The link selection unit may perform ranking with respect to the TCP connection establishment according to a domain name or an IP address of the link destination.
The information processing apparatus may further include a data acquisition unit that acquires the display control data and related data related to the display control data. The data acquisition unit may handle a data acquisition request from the first structuring unit in priority to a data acquisition request from the second structuring unit.
The connection establishment unit may acquire, when a host address of the link destination is decided, an IP address corresponding to the host address before prefetching of the display control data or establishment of the TCP connection.
The information processing apparatus may further include a cache memory in which the display control data and the related data acquired by the data acquisition unit upon requests from the first structuring unit and the second structuring unit are stored. The display control unit may switch display based on data stored in the cache memory, at a time point of all the display control data required for display based on the second structured data having been stored in the cache memory.
The second structuring unit does not have to generate the second structured data in a case the structural unit in which the information relating to display control involving script processing is written is not present in the structural units extracted by the structure analysis unit.
The information processing apparatus may further include a display history storage unit that stores a history including a structural unit corresponding to content displayed on the display screen at a time of performing display based on the first structured data. The display control unit may select, at a time of switching to display based on the second structured data, a structural unit corresponding to content to be displayed on the display screen, based on display history stored in the display history storage unit.
According to another embodiment of the present invention, there is provided a data acquisition method which includes the steps of detecting a separation distance between an operating tool in contact with or in proximity to a display screen and the display screen, selecting, in a case the separation distance detected in the step of detecting a separation distance is a specific threshold or less, a link destination whose display is at least partially located for a specific time in a region of the display screen corresponding to the operating tool, among at least one link destination displayed on the display screen, acquiring, before the link destination is selected by the operating tool, information relating to a layout of a display screen and display control data including at least a structural unit in which the information relating to a layout of a display screen is written, the display control data and the information relating to a layout of a display screen existing at the link destination selected in the step of selecting a link destination, analysing the display control data and extracting structural units included in the display control data, in a case the link destination whose display control data has been acquired in the step of acquiring display control data performed prior to selection by the operating tool is selected by the operating tool, generating, in a case the link destination whose display control data has been acquired in the step of acquiring display control data performed prior to selection by the operating tool is selected by the operating tool, first structured data for display control by mutually linking, except for a structural unit in which information relating to display control involving script processing is written, the structural units including at least the structural unit in which the information relating to a layout of a display screen is written, among the structural units extracted in the step of extracting structural units, generating, in a case the link destination whose display control data has been acquired in the step of acquiring display control data performed prior to selection by the operating tool is selected by the operating tool, second structured data for display control by mutually linking the structural units, displaying a display screen by using the first structured data generated in the step of generating first structured data, and redisplaying, at a stage the second structured data is generated, the display screen by using the second structured data.
According to another embodiment of the present invention, there is provided a program for causing a computer to realize a separation distance detection function of detecting a separation distance between an operating tool in contact with or in proximity to a display screen and the display screen, a link selection function of selecting, in a case the separation distance detected by the separation distance detection function is a specific threshold or less, a link destination whose display is at least partially located for a specific time in a region of the display screen corresponding to the operating tool, among at least one link destination displayed on the display screen, a data prefetch function of acquiring, before the link destination is selected by the operating tool, information relating to a layout of a display screen and display control data including at least a structural unit in which the information relating to a layout of a display screen is written, the display control data and the information relating to a layout of a display screen existing at the link destination selected by the link selection function, a structure analysis function of analysing the display control data and extracting structural units included in the display control data, in a case the link destination whose display control data has been acquired by the data prefetch function is selected by the operating tool, a first structuring function of generating, in a case the link destination whose display control data has been acquired by the data prefetch function is selected by the operating tool, first structured data for display control by mutually linking, except for a structural unit in which information relating to display control involving script processing is written, the structural units including at least the structural unit in which the information relating to a layout of a display screen is written, among the structural units extracted by the structure analysis function, a second structuring function of generating, in a case the link destination whose display control data has been acquired by the data prefetch function is selected by the operating tool, second structured data for display control by mutually linking the structural units, and a display control function of displaying a display screen by using the first structured data generated by the first structuring function, and redisplaying, at a stage the second structured data is generated by the second structuring function, the display screen by using the second structured data.
According to the embodiments of the present invention described above, the display delay of a page caused by the sequential nature of script processing can be reduced, and a well laid-out page can be quickly displayed.
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the appended drawings. Note that, in this specification and the appended drawings, structural elements that have substantially the same function and structure are denoted with the same reference numerals, and repeated explanation of these structural elements is omitted.
<Flow of Description>
The flow of describing embodiments of the present invention described below will be briefly mentioned here. First, before describing in detail the technical configuration according to the present embodiment, a standard configuration relating to a page display process by a Web browser will be described with reference to
Next, an effect of reducing page display time obtained in the case of adopting a display control method according to the embodiment will be described with reference to
Next, a prefetching method according to the second embodiment of the present invention will be described with reference to
Next, a pre-connection method according to the embodiment will be described with reference to
Next, a method of integrating proximity detection and a prefetch process according to the third embodiment of the present invention will be described with reference to
Next, an example of the hardware configuration capable of realizing the functions of the information processing apparatuses 100 according to the first to third embodiments will be described with reference to
(Description Items)
1-1: Operation of Web Browser
1-2: Display Time Analysis Result
2-1: Operation of Web Browser
2-2: Functional Configuration of Information Processing Apparatus 100
2-3: Operation of Information Processing Apparatus 100
2-4: Effect on Display Time
2-5: Comparison Between Display Results according to Difference in DOM Structures
2-6: Concrete Example of DOM Building Steps
3-1: Effect of Prefetching (Consideration)
3-2: Functional Configuration of Information Processing Apparatus 100
3-3: Operation of Information Processing Apparatus 100
3-4: Flow of Prefetch Process
3-5: Effect of Prefetching
3-6: Effect of Pre-Connection (Consideration)
4-1: Integration of Proximity Detection and Prefetch Process
4-2: Functional Configuration of Information Processing Apparatus 100
4-3: Operation of Information Processing Apparatus 100
4-4: Flow of Prefetch Process based on Proximity Detection
4-5: Structure of Touch Panel Capable of Proximity Detection (In-Cell Touch Panel)
First, before describing the embodiments of the present invention, a Web page display process by a Web browser will be described. An explanation will be given here on a standard flow of processes performed by a Web browser, from the acquisition of an HTML file to the display of a Web page (hereinafter, display processing sequence).
<1-1: Operation of Web Browser>
A display processing sequence by a standard Web browser 10 is shown in
At this time, the Web browser 10 analyses the structure of the HTML by using a parser program called HTML parser 11. As has been described, the HTML file is written by using specific tags that define the structural units. Accordingly, by using the parser program, a structural unit delimited by the tags can be extracted, or the relationship between the structural units can be analysed. The HTML parser 11 analyses the HTML file, and requests a Web server 320 for an external resource where appropriate (step S14).
The external resource here is, for example, a style sheet file that defines layout information and a script file that defines script information. Now, when an external resource is transmitted from the Web server 320 in response to the request, the Web browser 10 acquires the external resource transmitted by the Web server 320 (step S15). The external resource acquired in step S15 is used for the process of step S16 or S17 depending on its type. Also, information on the structural unit extracted from the HTML file by the HTML parser 11 is used at the time of building a DOM 12.
When the external resource acquired in step S15 is a CSS file, the Web browser 10 applies the CSS (step S16). Also, when the external resource acquired in step S15 is a script file, the Web browser 10 performs script processing by a script engine 13 (step S17). After performing the process of step S16 or S17, the Web browser 10 builds the DOM 12. Then, the Web browser 10 creates various drawing elements based on the DOM 12 that has been built (step S18). Then, the Web browser 10 loads a plug-in as appropriate (step S19), and displays a Web page (step S20).
As described, various processes are performed until a Web page is displayed. Many of these processes are performed before the building of the DOM 12.
(DOM 12)
Here, the Process of Building the DOM 12, and the Process of Displaying a Web page based on the DOM 12 that has been built will be described in greater detail with reference to
As shown in
Note that the tree structure of the DOM 12 illustrated in
<1-2: Display Time Analysis Result>
Here, the relationship between the timing of building the DOM 12 and the time it takes to display a Web page will be considered with reference to
(Download Sequence)
As described above, the building of the DOM 12 is performed after at least the completion of the analysis of the HTML file by the HTML parser 11, the application of CSS and the execution of script processing. More particularly, a processing sequence as shown in
As shown in
Then, the Web browser 10 downloads a CSS file or a JS file as appropriate, based on the analysis result of the HTML file. Additionally, the download of the CSS file or the JS file may be performed during the analysis of the HTML file. Also, multiple CSS files or multiple JS files may be downloaded. Furthermore, image data and the like (Image etc.) is downloaded in accordance with the analysis result of the HTML file. When all the CSS files and the JS files are downloaded, the structural elements for building the DOM 12 are determined.
When all the structural elements for building the DOM 12 are ready, rendering of the DOM 12 is started by the rendering engine of the Web browser 10. At this time, it is not necessary that all the pieces of the image data and the like are downloaded. Also, when the rendering has progressed to a certain degree, operation by a user is enabled. Next, when all the pieces of image data and the like are downloaded and the rendering of the DOM 12 is complete, display of a Web page is complete. Display of a complete Web page is completed at this time point. As described, in the display processing sequence of a standard Web browser 10, the DOM 12 is not established until the HTML file, the CSS file and the JS file are all downloaded.
(Time Taken for Displaying Web Page)
Now, the download sequence illustrated in
Moreover, the example of
First, attention will be paid on the processing of the CSS file. The processing of the CSS file is started when a time of about 2500 ms has elapsed since the occurrence of a redirect (0 ms), and is performed continuously for about 2500 ms. Furthermore, in the example of
Next, attention will be paid on the processing of the JS file. The processing of the JS file is simultaneously started when the processing of the CSS file is started. However, processing of only one JS file is started at this time point. The processing of the second JS file is started after the completion of the processing of the first JS file. Also at this time point, processing is started only for one JS file. Likewise, processing is performed for one JS file at a time until processing of all the JS files is complete. As a result, a time of about 12000 ms is taken for the processing of all the JS files.
Subsequently, download of image data and the like, rendering of a DOM, and the like are performed, and Web page display processing is performed. These processes are performed simultaneously in parallel, and the processing time taken for displaying a Web page is not greatly affected.
What can be said from the measurement result illustrated in
Accordingly, the inventors of the present invention have devised a method of performing the download and execution of the JS file after the other processes. To estimate the effect obtained in the case of applying this method, a simulation as illustrated in
As described above, time taken for displaying a Web page can be drastically reduced by performing the download and execution of a script file at a later sequence. In the following, a mechanism for putting the processing on a script file at a later sequence will be described. The first embodiment of the present invention relates to an apparatus and a method for realizing such mechanism.
<2-1: Operation of Web Browser>
First, the processing sequence of a Web browser according to the present embodiment will be described with reference to
(Standard Processing Sequence)
As shown in
(Processing Sequence of Present Embodiment)
On the other hand, the processing sequence according to the present embodiment is performed by two threads (first and second threads) as shown in
On the other hand, in the second thread, processing of a JS file is performed, and the final DOM (hereinafter, complete DOM) is built at the stage of completion of the processing of the JS file. Furthermore, image data and the like not acquired by the first thread is downloaded, and a Web page is displayed based on the complete DOM. At this time, the Web page displayed based on the temporary DOM is updated to the Web page displayed based on the complete DOM (see
As has been described with reference to a simulation result, the timing of building a DOM was delayed due to the processing of the JS file being included, and the time taken until the display of a Web page was long as a result. However, the building of a temporary DOM to be built by the first thread is performed independently of the processing of the JS file. Thus, the building of the temporary DOM is performed at a very early timing compared to the building timing of the DOM by a standard Web browser.
However, the structural unit related to the processing of the JS file is not included in the temporary DOM. Therefore, the Web page displayed based on the temporary DOM is different from the Web page displayed based on the complete DOM including the structural unit related to the processing of the JS file. However, the processing sequence according to the present embodiment includes an operation by the second thread for building the complete DOM that includes the structural unit related to the processing of the JS file. Also, since the display is switched to that of the Web page based on the complete DOM at the timing of the completion of the processing by the second thread, discomfort felt by a user due to the difference in the Web pages can be resolved. As described, by applying the processing sequence according to the present embodiment, a challenging task of combining the quick display of a Web page and the display of the right Web page can achieved.
Moreover, in reality, some files of the structural units which will be nodes of the DOM are overlapped for the temporary DOM built by the first thread and the complete DOM built by the second thread. Accordingly, in relation to the download of each file, it is efficient to execute a download manager thread, and to use, by the first and second threads, the files that the download manager thread acquired, as shown in
Heretofore, the processing sequence according to the present embodiment has been described.
<2-2: Functional Configuration of Information Processing Apparatus 100>
Next, the functional configuration of the information processing apparatus 100 that is capable of realizing the above idea will be described with reference to
As shown in
When a redirect occurs, first, an HTML file is downloaded by the data acquisition unit 110. Then, the HTML file downloaded by the data acquisition unit 110 is input to the structure analysis unit 120. When the HTML file is input, the structure analysis unit 120 analyses the structure of the HTML file, and extracts the structural unit of the HTML file. Then, the structure analysis unit 120 transmits, as appropriate, requests for a CSS file and a JS file to the Web servers 310 and 320 via the data acquisition unit 110.
When a CSS file and a JS file are transmitted from the Web servers 310 and 320 in response to the requests, the data acquisition unit 110 receives the CSS file and the JS file that have been transmitted. The CSS file and the JS file received by the data acquisition unit 110 are input to the structure analysis unit 120. When the CSS file is input, the structure analysis unit 120 performs a process of applying the CSS file. Also, when the JS file is input, the structure analysis unit 120 executes the input JS file. At this time, JS files are sequentially acquired as appropriate, and are executed by the structure analysis unit 120.
The result of CSS file application by the structure analysis unit 120 is input to both the temporary DOM creation unit 131 and the complete DOM creation unit 132, and the result of JS file execution is input to the complete DOM creation unit 132. Also, the structure analysis unit 120 inputs information on the structural unit extracted from the HTML file to the temporary DOM creation unit 131 and the complete DOM creation unit 132. However, information on the structural unit relating to the processing of the JS file is not input to the temporary DOM creation unit 131. Furthermore, based on the analysis result of the HTML file, the structure analysis unit 120 requests the data acquisition unit 110 for the acquisition of image data and the like as appropriate. The image data and the like acquired by the data acquisition unit 110 in response to such request is input to the display control unit 134 via the temporary DOM creation unit 131 and the complete DOM creation unit 132.
As described above, the structural units of the HTML file, excluding the structural unit relating to the processing of the JS file, are input to the temporary DOM creation unit 131. Thus, the temporary DOM creation unit 131 forms a tree structure by mutually linking the input structural units, and builds a temporary DOM. Information on the temporary DOM built by the temporary DOM creation unit 131 is input to the display control unit 134. On the other hand, all the structural units of the HTML file, including the structural unit relating to the processing of the JS file, are input to the complete DOM creation unit 132. However, since the acquisition of the JS file takes a long time due to the sequential nature of the processing of the JS file, the input of information on all the structural units and data takes a relatively long time. As a result, building of the complete DOM is completed some time after the building of the temporary DOM.
When the information relating to all the structural units of the HTML file, including the information relating to the processing of the JS file, is input, the complete DOM creation unit 132 forms a tree structure by mutually linking the input structural units, and builds a complete DOM. Then, information on the complete DOM built by the complete DOM creation unit 132 is input to the display control unit 134. Furthermore, the complete DOM creation unit 132 acquires all the image data and the like necessary for displaying a Web page based on the complete DOM, and stores the same in the cache memory 133. By storing all the data necessary for displaying a Web page in the cache memory 133, a Web page displayed based on the temporary DOM can be quickly replaced with a Web page based on the complete DOM.
As described above, information on the temporary DOM and image data and the like are input from the temporary DOM creation unit 131 to the display control unit 134. When the information on the temporary DOM and the image data and the like are input, the display control unit 134 performs rendering based on the temporary DOM, and creates a Web page based on the temporary DOM. Then, the display control unit 134 makes the display unit 140 display the Web page based on the temporary DOM. Furthermore, when the information on the complete DOM and the image data and the like are input from the complete DOM creation unit 132, the display control unit 134 performs rendering based on the complete DOM, and creates a Web page based on the complete DOM. Then, the display control unit 134 replaces the Web page based on the temporary DOM with the Web page based on the complete DOM.
At this time, the display control unit 134 reads the image data and the like necessary for displaying a Web page stored in the cache memory 133, and makes the display unit 140 display the Web page based on the complete DOM. Note that when image data and the like necessary for displaying a Web page is not stored in the cache memory 133, the display control unit 134 acquires the image data and the like that are necessary via the data acquisition unit 110, and have the Web page displayed by using the acquired image data and the like.
Furthermore, in a case scrolling or the like is performed during the display of the Web page based on the temporary DOM, the display control unit 134 stores, in the node information storage unit 135, information on the structural unit displayed at a reference position on the display unit 140 (hereinafter, node information). Then, at the time of displaying the Web page based on the complete DOM, the display control unit 134 reads the node information stored in the node information storage unit 135, and adjusts the scroll position of the Web page based on the complete DOM such that the structural unit of the complete DOM corresponding to the node information is displayed at the reference position on the display unit 140. With this configuration, the discomfort felt by a user at the time the Web page based on the temporary DOM is switched to the Web page based on the complete DOM can be reduced.
Heretofore, the functional configuration of the information processing apparatus 100 according to the present embodiment has been described.
<2-3: Operation of Information Processing Apparatus 100>
Next, an operation of the information processing apparatus 100 according to the present embodiment will be described with reference to
As shown in
Next, the information processing apparatus 100 determines whether the creation of the temporary DOM is complete or not (step S104). In the case the creation of the temporary DOM is complete, the information processing apparatus 100 proceeds to the step of S105. On the other hand, in the case the creation of the temporary DOM is not complete, the information processing apparatus 100 returns to the process of step S104. In the case of proceeding to the process of step S105, the information processing apparatus 100 creates a Web page by rendering the temporary DOM, and displays the same on a display screen (step S105).
Next, the information processing apparatus 100 determines whether the creation of the complete DOM is complete or not (step S106). In the case the creation of the complete DOM is complete, the information processing apparatus 100 proceeds to the process of step S107. On the other hand, in the case the creation of the complete DOM is not complete, the information processing apparatus 100 returns to the process of step S106. In the case of proceeding to the process of step S107, the information processing apparatus 100 creates a Web page by rendering the complete DOM, displays the Web page on the display screen instead of the Web page based on the temporary DOM (step S107), and ends the series of processes.
Heretofore, the operational flow of the information processing apparatus 100 according to the present embodiment has been described.
<2-4: Effect on Display Time>
Here, an effect obtained in the case of applying the processing sequence according to the present embodiment will be described with reference to
First, reference will be made to
Next, reference will be made to
Next, reference will be made to
Heretofore, an effect obtained by applying the processing sequence according to the present embodiment has been described.
<2-5: Comparison Between Display Results according to Difference in DOM Structures>
An effect obtained by applying the processing sequence according to the present embodiment has been made clear. However, it would be meaningless if a Web page based on the temporary DOM is disturbing to look at. The difference between the display results based on the difference in the DOM structure will be considered with reference to
(D1: HTML File Only)
First, reference will be made to
(D2: HTML File+CSS File)
Next, reference will be made to
In this case, the structure of the simple DOM will have a tree structure that takes the structural unit of HTML tags as a root, and the structural units of HEAD tags and BODY tags as nodes in the first hierarchy. Furthermore, a node corresponding to the text data T and a node corresponding to the image data M1 are linked to the lower hierarchy (second hierarchy) of the structural unit of the BODY tags, for example. As described, since rewriting process is not performed on this simple DOM due to the application of the CSS file, the structure of the simple DOM is substantially the same as that in the case of only the HTML file.
(D3: HTML File+CSS File+JS File)
Next, reference will be made to
As described, there is a difference between the display results of a Web page due to the structure of the simple DOM. However, as with the structure of the temporary DOM according to the present embodiment, by taking into consideration the structural unit relating to the CSS file, the layout of a Web page based on the temporary DOM is adjusted, and necessary information can be presented without making a user feel discomfort.
<2-6: Concrete Example of DOM Building Steps>
Next, concrete examples of DOM building steps will be described with reference to
(DOM Building Steps of Standard Web Browser)
First, DOM building steps of a standard Web browser will be described. Here, a case of executing an HTML file illustrated in
When a redirect occurs, an HTML file as shown in
Then, as shown in
Next, as shown in
Next, as shown in
In the example of
Next, as shown in
Additionally, in the example of
Next, as shown in
As shown in
Heretofore, the DOM building steps of a standard Web browser has been concretely described. As described, the DOM building steps of a standard Web browser include steps of downloading and executing a JS script file. Thus, the building of the DOM takes a long time due to the sequential nature of the script processing.
(DOM Building Steps According to Present Embodiment)
Next, DOM building steps according to the present embodiment will be described. Additionally, the same file as the above-described example shown in
(Processing by First Thread)
First, processing by a first thread will be described.
When a redirect occurs, an HTML file is downloaded as shown in
Then, as shown in
Next, as shown in
Next, as shown in
Next, as shown in
Additionally, in the example of
Next, as shown in
As shown in
As described, in the building steps for the temporary DOM by the first thread, the download and execution of a JS script file are skipped. Therefore, there is no processing delay due to the sequential nature of script processing, and the temporary DOM can be quickly built.
(Processing by Second Thread)
Next, processing by a second thread will be described. Note that the processing by the second thread is started at the same timing as the processing by the first thread. Also, since download of various files is performed by a download manager thread, the files that are already downloaded to be used by the first thread do not have to be downloaded redundantly.
When a redirect occurs, the structure of the HTML file is analysed as shown in
Then, as shown in
Next, as shown in
Next, as shown in
In the example of
As described, in the building steps for a DOM by the second thread, the <script . . . > tag that was skipped in the DOM building steps of the first thread is read, and download and execution of a JS script file are performed.
Next, as shown in
Additionally, in the example of
Next, as shown in
As shown in
Then, as shown in
As described, in the DOM building steps by the second thread, download and execution of a script file that were skipped in the DOM building steps by the first thread are performed, and a DOM that is meant to be built (complete DOM) is created. As described above, the building steps for the complete DOM is substantially the same as the DOM building steps by a standard Web browser. That is, the complete DOM is built by reading the structural units of the HTML file including the JS in the proper order and executing the same. Accordingly, a Web page based on the complete DOM will have a layout and operation that accurately reflect the intention of the author.
As has been described, when a temporary DOM is build by the first thread, a Web page based on the temporary DOM is created by rendering the temporary DOM, and the Web page is displayed on the screen. Since processes of download and execution of a script file are not included in the building steps for the temporary DOM, a Web page based on the temporary DOM is displayed quickly. On the other hand, when the building of a complete DOM is complete, a Web page based on the complete DOM is created by rendering the complete DOM, and the Web page replaces the Web page based on the temporary DOM. Therefore, it becomes possible to browse a Web page having a structure that is actually intended by the author of the Web page.
As a result, the desire to quickly acquire necessary information and the desire to browse a Web page that accurately reflects the intention of the author of the Web page can both be fulfilled. Such configuration is especially effective in an unstable network environment such as a mobile data line. Also, application to a device with relatively high computing capability is desirable.
Additionally, expressions “first thread” and “second thread” are used, but the building processes of the temporary DOM/complete DOM do not necessarily have to be performed by two real threads. That is to say, it is not necessary to prepare two real threads and to independently perform the processing, as long as two types of processing can be logically performed. Furthermore, in the above explanation, the analysis of an HTML file and the building of a DOM based on the structural units included in the HTML file have been described, but application is also possible to the analysis of a file written in other structured language and the process of building a tree structure therefor. Such application example is, of course, within the technical scope of the present embodiment.
(Modified Example, Etc.)
Heretofore, explanation has been made on the premise that a structural unit relating to script processing is included in the HTML file. However, in reality, many HTML files do not include a structural unit relating to script processing. In the case of an HTML file not including a structural unit relating to script processing, the temporary DOM and the complete DOM built from the HTML file will have the same structure.
Accordingly, if it becomes clear during the execution of the building steps for the temporary DOM that the HTML file does not include a structural unit relating to script processing, modification is made to stop the building steps for the complete DOM. Such a modification allows to not create the complete DOM, thereby reducing the computing load necessary for the creation of the complete DOM. Moreover, since the complete DOM is not created, a process of replacing the Web page based on the temporary DOM with the Web page based on the complete DOM is also omitted.
Furthermore, in the above explanation, the entire Web page was taken as the application scope of the technology according to the present embodiment. However, the above-described technology can also be performed for each tab, window or frame of a Web browser. Modification is also possible that allows specification of a domain, a URL or the like to which the technology is to be applied. Furthermore, it is also possible to select a site to which the technology is to be applied based on the length of display time detected at the time of Web browsing, and to apply the technology for a site that takes a long time to be displayed.
Next, the second embodiment of the present invention will be described. The present embodiment relates to a method of acquiring in advance (prefetching) a file necessary for displaying a Web page, before the display of the Web page is requested by a user. Using this method allows to not download a file after the display of a Web page is requested by a user, and thus time taken to display a Web page can be greatly reduced.
Additionally, a method of prefetching data used for displaying a Web page from all the link destinations described in a Web page that is being browsed is already known. However, if a large number of link destinations are described in a Web page that is being browsed or if there are a large number of files for displaying a Web page at a link destination, the bandwidth will be taken up by the prefetching. Also, a high-capacity memory will be necessary to cache the prefetched files. Moreover, it is extremely difficult to appropriately select a link destination that is likely to be selected by a user, since it calls for prediction of the user's action. Furthermore, prediction of a user's action calls for high computing capability, and is difficult to realize in an information processing apparatus for which the technology according to the first embodiment described above will be useful. Thus, in the present embodiment, method of suppressing the size of a file to be prefetched will be proposed, with the use of the technology according to the first embodiment as a premise.
<3-1: Effect of Prefetching (Consideration)>
An effect of prefetching will be described here with reference to
First, reference will be made to
First, reference will be made to
Next, reference will be made to
Furthermore, by combining the present embodiment with the technology of the first embodiment and by structuring a temporary DOM from the prefetched HTML file and CSS file and displaying a Web page based on the temporary DOM, even quicker display of a Web page is expected. Additionally, as shown in
As described above, the present embodiment proposes a method of prefetching an HTML file and a CSS file. Of course, the HTML file is only an example, and a file written in other structured language may be used instead of the HTML file. Also, the CSS file is only an example, and a file of a different format for adjusting the display layout can be used instead of the CSS file. In any case, by prefetching these two types of files, a Web page based on a temporary DOM can be quickly displayed. In the following, the prefetching method according to the present embodiment will be described in detail.
<3-2: Functional Configuration of Information Processing Apparatus 100>
First, the functional configuration of an information processing apparatus 100 capable of realizing the idea described above will be described with reference to
As shown in
The communication unit 150 is means for communicating with the Web servers 310 and 320 via a network 200. Additionally, to download a file from the Web server 310 or 320, a DNS server has to be accessed, and name resolution has to be performed or a TCP connection has to be established. Also, a redirect has to be acquired from the Web servers 310 and 320. The communication unit 150 performs, as appropriate, the processes mentioned above and the like regarding the communication with the Web servers 310 and 320.
Furthermore, the link selection unit 160 is means for selecting a link destination to be a prefetch target. As described above, as link destinations which are prefetch targets, there can be assumed (candidate 1) link destinations registered in a bookmark list, (candidate 2) a specific number of link destinations at the top of the link destinations included in a search result, (candidate 3) link destinations in a browsing page, and the like. For example, when (candidate 2) is set, the link selection unit 160 selects a specific number of link destinations included in a search result output from a search engine. Also in the case of (candidate 1) and (candidate 3), the link selection unit 160 selects a specific number of link destinations.
Furthermore, the link selection unit 160 assigns a selected link destination with a type of prefetching according to a specific rule. For example, the link selection unit 160 assigns a first method of prefetching an HTML file and a CSS file for top N1 link destinations, and assigns a second method of prefetching a redirect for the next N2 link destinations. Also, the link selection unit 160 assigns, to the Web servers 310 and 320 corresponding to the next N3 link destinations, a third method of establishing a TCP connection in advance, or assigns a fourth method of performing name resolution through DNS in advance. In the following, the first method, the second method, the third method and the fourth method will be respectively referred to as file prefetching, redirect prefetching, pre-connection and DNS prefetching.
Information on the link destinations selected by the link selection unit 160 and the type of prefetching assigned to each link destination are input to the data acquisition unit 110 and the communication unit 150.
For example, information on a link destination assigned to file prefetching or redirect prefetching is input to the data acquisition unit 110. When information on a link destination assigned to file prefetching is input, the data acquisition unit 110 downloads an HTML file and a CSS file from the link destination indicated by the input information on the link destination, and caches the same. On the other hand, when information on a link destination assigned to redirect prefetching is input, the data acquisition unit 110 acquires a redirect code from the link destination indicated by the input information on the link destination, and proceeds to read the URL of the redirect destination as appropriate.
Furthermore, information on a link destination assigned to pre-connection or DNS prefetching is input to the communication unit 150. When information on a link destination assigned to pre-connection is input, the communication unit 150 establishes a TCP connection to the link destination indicated by the input information on the link destination. Note that, in the case of pre-connection, download or the like of a file is not performed. On the other hand, when information on a link destination assigned to DNS prefetching is input, the communication unit 150 performs name resolution for connecting to the link destination indicated by the input information on the link destination. Note that, in the case of DNS prefetching, processing does not go as far as establishment of a TCP connection.
The above-described file prefetching, redirect prefetching, pre-connection and DNS prefetching are performed before a link destination is specified by a user. In a case file prefetching is to be performed, after acquisition of an HTML file, analysis of the HTML file is performed, and download of a CSS file is performed as appropriate. Then, when a link destination is specified by a user, building of a temporary DOM and a complete DOM are started by the rendering unit 130. The building method of the temporary DOM and the complete DOM, and the processes of display and switching of Web pages are substantially the same as those of the information processing apparatus 100A according to the first embodiment described above. Accordingly, detailed explanation will be omitted.
Heretofore, the functional configuration of the information processing apparatus 100 according to the present embodiment has been described.
<3-3: Operation of Information Processing Apparatus 100>
Next, the operation of the information processing apparatus 100 according to the present embodiment will be described with reference to
As shown in
In a case it proceeded to the process of step S204, the information processing apparatus 100 analyses the HTML file that has been downloaded and cached in advance by file prefetching, and starts creating a temporary DOM by mutually linking each structural unit relating to the description of the HTML and a structural unit relating to a CSS file (step S204). Then, the information processing apparatus 100 downloads a JS file from the link destination selected by the user (step S205). Then, the information processing apparatus 100 starts creating a complete DOM by using the HTML file, the CSS file, and the JS file (step S206).
Then, the information processing apparatus 100 determines whether or not the creation of the temporary DOM is complete (step S207). In a case the creation of the temporary DOM is complete, the information processing apparatus 100 proceeds to the process of step S208. On the other hand, in a case the creation of the temporary DOM is not complete, the information processing apparatus 100 returns to the process of step S207. In a case it proceeded to the process of step S208, the information processing apparatus 100 creates a Web page by rendering the temporary DOM, and displays the created Web page on the display screen (step S208).
Then, the information processing apparatus 100 determines whether or not the creation of the complete DOM is complete (step S209). In a case the creation of the complete DOM is complete, the information processing apparatus 100 proceeds to the process of step S210. On the other hand, in a case the creation of the complete DOM is not complete, the information processing apparatus 100 returns to step S209. In a case it proceeded to step S210, the information processing apparatus 100 creates a Web page by rendering the complete DOM, replaces the Web page based on the temporary DOM with the Web page based on the complete DOM (step S210), and ends the series of processes.
Heretofore, the operational flow of the information processing apparatus 100 according to the present embodiment has been described.
<3-4: Flow of Prefetch Process>
Next, a flow of a prefetch process according to the present embodiment will be described with reference to
As shown in
In a case the process proceeded to step S304, a command (GET) for acquiring an HTML file from Xi is issued, and the HTML file is acquired (step S304). Then, the acquired HTML file is parsed, and the link destination of a CSS file written in the HTML file is extracted (step S305). Furthermore, a command (GET) for acquiring the CSS file is issued, and the CSS file is acquired (step S305). Then, the acquired HTML file and CSS file are cached (step S306). Then, Xi is deleted from the prefetch list (step S307). Then, whether or not there is an i+1-th URL (X(i+1)) in the prefetch list is determined (step S308). In a case there is X(i+1), the process returns to step S303. On the other hand, in a case there is no X(i+1), the series of processes is ended.
Heretofore, a flow of the prefetch process according to the present embodiment has been described. Additionally, the prefetch process is cancelled at the stage of the user clicking a URL link.
<3-5: Effect of Prefetching>
Next, an effect of the above-described prefetching will be described with reference to
<3-6: Effect of Pre-Connection (Consideration)>
Next, a case of applying the pre-connection described above will be considered with reference to
As shown in
Furthermore, it is also conceivable to select a link destination for which the effect obtained by applying the technology of the first embodiment described above and the prefetching or pre-connection according to the present embodiment is large. In this case, a selection target is decided based on, for example, a specific domain, a country, an actually measured response time, history of connection establishment times, and the like. As shown in
Heretofore, the second embodiment of the present invention has been described.
Next, the third embodiment of the present invention will be described. The present embodiment relates to a method of performing prefetching (or pre-connection) at an appropriate timing by using a touch panel that is capable of detecting a proximity distance of an operating tool. This method is based on the technology according to the first and second embodiments, and is for improving the usefulness of the technology.
<4-1: Integration of Proximity Detection and Prefetch Process>
First, an overview of a prefetching method according to the present embodiment will be described with reference to
Now, as shown in
Additionally, a major difference between the mechanism of the prefetching according to the present embodiment and the mechanism of the prefetching according to the second embodiment lies in the method of selecting a link destination to be the target of prefetching. According to the prefetching method of the second embodiment, a specific number of link destinations in a page that is being browsed are selected, or a specific number of link destinations are selected from a search result. However, according to the prefetching method of the present embodiment, the link destination within an area to which an operating tool is neared is selected as the target of prefetching. Therefore, the number of link destinations to be selected is reduced, thereby causing the data amount to be cached to be reduced than the prefetching method according to the second embodiment. However, since the execution time of the prefetch process becomes relatively short, it is sometimes better to combine prefetching with pre-connection as appropriate.
For example, it is sometimes more preferable to perform step-by-step processing of starting pre-connection when the distance between the operating tool and the touch panel becomes shorter than a threshold L1, and starting file prefetching when the distance becomes shorter that a threshold L2 (L2<L1). It is also possible to start file prefetching in a case a state where the distance is shorter than the threshold L1 is maintained for a specific time or more. According to this configuration, file prefetching can be completed while a user is wondering whether to select a link destination or not, and a Web page based on a temporary DOM can be displayed immediately after user selection is performed.
Heretofore, an overview of the prefetching method according to the present embodiment has been described.
<4-2: Functional Configuration of Information Processing Apparatus 100>
Next, the functional configuration of the information processing apparatus 100 that is capable of realizing the above idea will be described with reference to
As shown in
First, an explanation will be given on the touch panel TP. The touch panel TP includes an optical sensor S. Also, although shown separately in
Additionally, an example is shown in
The proximity determination unit 170 estimates the distance between an operating tool and the touch panel TP based on the intensity of reflected light detected by the optical sensor S. Also, the proximity determination unit 170 determines, based on the intensity distribution of the reflected light, the position of the operating tool, the size of a shadow formed by the operating tool and the region of the shadow formed by the operating tool. The shadow here means a shadow formed due to the light emitted from the light source being intercepted by the operating tool where the operating tool is seen from a position facing the touch panel TP with the operating tool in-between. Of course, it is not recognized as a shadow by the optical sensor S, but the expression “shadow” is used here so that an image formed by the operating tool will be easy to picture. Moreover, it can also be said that the larger the size of the shadow, the shorter the distance between the operating tool and the touch panel TP.
Information indicating the position of the operating tool (hereinafter, position information), information indicating the region of a shadow formed by the operating tool (hereinafter, region information), and information indicating the distance between the operating tool and the touch panel TP (hereinafter, distance information) are input to the link selection unit 160 by the proximity determination unit 170. When the position information, the region information and the distance information are input, the link selection unit 160 determines whether or not a link destination is displayed in the area on the screen indicated by the region information. In a case a link destination is displayed, the link selection unit 160 selects the link destination that is displayed and, at the same, refers to the distance information, and determines whether or not the distance between the operating tool and the touch panel TP is shorter than a specific threshold. In a case the distance is shorter than the specific threshold, the link selection unit 160 assigns a type of prefetching to the selected link destination, and inputs information on the link destination to the data acquisition unit 110 or the communication unit 150. Additionally, the operations of the data acquisition unit 110 and the communication unit 150 are substantially the same as those of the first and second embodiments.
Now, there are several methods of assigning a type of prefetching to a link destination. First, the most basic method is to start file prefetching in a case the distance from the operating tool becomes less than the specific threshold. For example, although it will be a little more complicated, in a case multiple link destinations are included in the region information, a method can be conceived of assigning, according to the distance from the position information indicating the centre position of the shadow formed by the operating tool, file prefetching to a link destination which is close and pre-connection to a link destination which is distant. Furthermore, there can be conceived a method of preparing two specific thresholds, and changing the type of prefetching to be assigned to a link destination such that pre-connection is started in a case the distance from the operating tool becomes less than the first threshold L1 and prefetching is started in a case the distance from the operating tool becomes less than the second threshold L2 (L2<L1). This assignment process is performed by the link selection unit 160.
Additionally, the link selection unit 160 may also determine whether or not to perform file prefetching, according to the time the operating tool is in proximity to a link destination. For example, it is possible to have file prefetching performed only in a case a specific time has passed in a state where the operating tool is nearer, than a specific threshold, to the screen at a position above a certain link destination. It is also possible to perform pre-connection after a state where the operating tool stays nearer, than a specific threshold, to the screen at a position above a certain link destination is maintained for a specific time and file prefetching is performed on the link destination, the pre-connection being performed on link destinations within a specific range of the above-mentioned link destination. Furthermore, in a case there are multiple link destinations for which pre-connection is to be performed, the link selection unit 160 may set the order of performing pre-connection according to a specific standard. For example, the link connection unit 160 may perform pre-connection at an earlier stage for a link destination that has been selected specific times or more. The link selection unit 160 may also perform pre-connection at an earlier stage for a link destination, the round-trip time of which is longer than a specific threshold. The link selection unit 160 may also set the order of performing pre-connection according to the domain name or the IP address of the link destination. The processes relating to the determination and execution control are performed by the link selection unit 160.
Heretofore, the functional configuration of the information processing apparatus 100 according to the present embodiment has been described.
<4-3: Operation of Information Processing Apparatus 100>
Next, an operation of the information processing apparatus 100 according to the present embodiment will be described with reference to
As shown in
Next, the information processing apparatus 100 downloads an HTML file and a CSS file from the selected link destination (step S404). Then, the information processing apparatus 100 determines whether or not the selected link destination is selected by the user (step S405). In a case the link destination is selected, the information processing apparatus 100 proceeds to the process of step S406. On the other hand, in a case the link destination is not selected, the information processing apparatus 100 returns to the process of step S405. In a case it proceeded to the process of step S406, the information processing apparatus 100 analyses the HTML file that was acquired in advance, and starts creating a temporary DOM by mutually linking structural units relating to the HTML description and a structural unit relating to the CSS file (S406).
Next, the information processing apparatus 100 acquires a JS file from the link destination selected by the user (S407). Then, the information processing apparatus 100 starts creating a complete DOM by mutually linking the structural units relating to the HTML description, the structural unit relating to the CSS file and a structural unit relating to the JS file, based on the analysis result of the HTML file that has been acquired in advance (step S408). Next, the information processing apparatus 100 determines whether or not the creation of the temporary DOM is complete (step S409). In a case the creation of the temporary DOM is complete, the information processing apparatus 100 proceeds to the process of step S410. On the other hand, in a case the creation of the temporary DOM is not complete, the information processing apparatus 100 returns to the process of step S409.
In a case it proceeded to the process of step S410, the information processing apparatus 100 creates a Web page by rendering the temporary DOM, and displays, on the display screen, the created Web page based on the temporary DOM (step S410). Then, the information processing apparatus 100 determines whether or not the creation of the complete DOM is complete (step S411). In a case the creation of the complete DOM is complete, the information processing apparatus 100 proceeds to the process of step S412. On the other hand, in a case the creation of the complete DOM is not complete, the information processing apparatus 100 returns to the process of step S411. In a case it proceeded to the process of step S412, the information processing apparatus 100 creates a Web page by rendering the complete DOM, displays, on the display screen, the created Web page based on the complete DOM instead of the Web page based on the temporary DOM (S412), and ends the series of processes.
Heretofore, the operational flow of the information processing apparatus 100 according to the present embodiment has been described.
<4-4: Flow of Prefetch Process Based on Proximity Detection>
Next, a flow of the prefetch process that uses proximity detection according to the present embodiment will be described with reference to
As shown in
In a case the focus is set for the threshold B or longer, the process proceeds to step S503. On the other hand, in a case the focus is not set for the threshold B or longer, the process returns to step S501. In a case the process proceeded to step S503, file prefetching is performed for the link C (step S503). Then, pre-connection is performed for a link group E existing in an area within D (mm2) of the link C (step S504), and the series of processes is ended.
Heretofore, a flow of the prefetch process according to the present embodiment has been described.
<4-5: Structure of Touch Panel Capable of Proximity Detection (In-Cell Touch Panel)>
Next, explanation will be given on a touch panel that is capable of proximity detection with reference to
An optical touch panel called “in-cell touch panel” is also known. An in-cell type optical touch panel (hereinafter, in-cell touch panel) detects the position of an operating tool by detecting, by using an optical sensor array formed on a glass substrate constituting a display panel, light reflected by the operating tool. A light source is provided in the display panel to display an image. When an operating tool is in contact with or in proximity to the display panel, the light emitted from the light source is strongly reflected by the operating tool and the reflected light is received by the optical sensor array.
A read circuit for reading intensity data of light detected by each optical sensor is connected to the optical sensor array. Therefore, when light reflected by the operating tool is detected by the optical sensor array, the intensity data of light detected by each optical sensor is read by the read circuit. The intensity data of light read by the read circuit in this manner indicates the distribution of light reflected by the operating tool. Accordingly, by forming an image from the intensity data of light read by the read circuit, the shape of the operating tool that is in contact with or in proximity to the display panel is obtained as an image.
Additionally, the image obtained here corresponds to a shadow image obtained due to light emitted from the light source being intercepted by the operating tool. As described, in a case of the in-cell touch panel, the shape of an operating tool is obtained as an image, and thus, the area of the shadow cast by the operating tool can be calculated. Furthermore, when considering that the amount of light intercepted by an operating tool increases as the operating tool nears a display panel, it becomes possible to estimate the distance between the operating tool and the display panel based on the area of the shadow (see
For example, when expressing, as a shadow, a portion where the intensity of reflected light is high, image patterns as shown in
<5: Hardware Configuration Example of Information Processing Apparatus 100>
The function of each structural element of the information processing apparatus 100 (100A, 100B, and 100C) described above can be realized by using the hardware configuration of an information processing apparatus shown in
As shown in
The CPU 902 functions as an arithmetic processing unit or a control unit, for example, and controls entire operation or a part of the operation of each structural element based on various programs recorded on the ROM 904, the RAM 906, the storage unit 920, or a removal recording medium 928. The ROM 904 is means for storing, for example, a program to be loaded on the CPU 902 or data or the like used in an arithmetic operation. The RAM 906 temporarily or perpetually stores, for example, a program to be loaded on the CPU 902 or various parameters or the like arbitrarily changed in execution of the program.
These structural elements are connected to each other by, for example, the host bus 908 capable of performing high-speed data transmission. For its part, the host bus 908 is connected through the bridge 910 to the external bus 912 whose data transmission speed is relatively low, for example. Furthermore, the input unit 916 is, for example, a mouse, a keyboard, a touch panel, a button, a switch, or a lever. Also, the input unit 916 may be a remote control that can transmit a control signal by using an infrared ray or other radio waves.
The output unit 918 is, for example, a display device such as a CRT, an LCD, a PDP or an ELD, an audio output device such as a speaker or headphones, a printer, a mobile phone, or a facsimile, that can visually or auditorily notify a user of acquired information. Moreover, the CRT is an abbreviation for Cathode Ray Tube. The LCD is an abbreviation for Liquid Crystal Display. The PDP is an abbreviation for Plasma Display Panel. Also, the ELD is an abbreviation for Electro-Luminescence Display.
The storage unit 920 is a device for storing various data. The storage unit 920 is, for example, a magnetic storage device such as a hard disk drive (HDD), a semiconductor storage device, an optical storage device, or a magneto-optical storage device. The HDD is an abbreviation for Hard Disk Drive.
The drive 922 is a device that reads information recorded on the removal recording medium 928 such as a magnetic disk, an optical disk, a magneto-optical disk or a semiconductor memory, or writes information in the removal recording medium 928. The removal recording medium 928 is, for example, a DVD medium, a Blu-ray medium, an HD-DVD medium, various types of semiconductor storage media, or the like. Of course, the removal recording medium 928 may be, for example, an IC card on which a non-contact IC chip is mounted or an electronic device. The IC is an abbreviation for Integrated Circuit.
The connection port 924 is a port such as an USB port, an IEEE 1394 port, a SCSI, an RS-232C port, or a port for connecting an externally connected device 930 such as an optical audio terminal. The externally connected device 930 is, for example, a printer, a mobile music player, a digital camera, a digital video camera, or an IC recorder. Moreover, the USB is an abbreviation for Universal Serial Bus. Also, the SCSI is an abbreviation for Small Computer System Interface.
The communication unit 926 is a communication device to be connected to the network 200, and is, for example, a communication card for a wired or wireless LAN, Bluetooth (registered trademark), or WUSB, an optical communication router, an ADSL router, or various communication modems. The network 200 connected to the communication unit 926 is configured from a wire-connected or wirelessly connected network, and is the Internet, a home-use LAN, infrared communication, visible light communication, broadcasting, or satellite communication, for example. Moreover, the LAN is an abbreviation for Local Area Network. Also, the WUSB is an abbreviation for Wireless USB. Furthermore, the ADSL is an abbreviation for Asymmetric Digital Subscriber Line.
Lastly, the technical contents according to the embodiments of the present invention will be briefly described. The technical contents stated here can be applied to various information processing apparatuses, such as a PC, a mobile phone, a portable game machine, a portable information terminal, an information appliance, a car navigation system, and the like.
The functional configuration of the information processing apparatus described above can be expressed as follows. The information processing apparatus mainly includes a separation distance detection unit, a link selection unit, a data prefetch unit, a structure analysis unit, a first structuring unit, a second structuring unit, and a display control unit.
The separation distance detection unit detects a separation distance between an operating tool in contact with or in proximity to a display screen and the display screen.
The link selection unit selects, in a case the separation distance detected by the separation distance detection unit is a specific threshold or less, a link destination whose display is at least partially located for a specific time in a region of the display screen corresponding to the operating tool, among at least one link destination displayed on the display screen.
The data prefetch unit acquires, before the link destination is selected by the operating tool, information relating to a layout of a display screen and display control data including at least a structural unit in which the information relating to a layout of a display screen is written, the display control data and the information relating to a layout of a display screen existing at the link destination selected by the link selection unit.
The structure analysis unit analyses the display control data and extracts structural units included in the display control data, in a case the link destination whose display control data has been acquired by the data prefetch unit is selected by the operating tool.
The first structuring unit generates, in a case the link destination whose display control data has been acquired by the data prefetch unit is selected by the operating tool, first structured data for display control by mutually linking, except for a structural unit in which information relating to display control involving script processing is written, the structural units including at least the structural unit in which the information relating to a layout of a display screen is written, among the structural units extracted by the structure analysis unit.
The second structuring unit generates, in a case the link destination whose display control data has been acquired by the data prefetch unit is selected by the operating tool, second structured data for display control by mutually linking the structural units.
The display control unit displays a display screen by using the first structured data generated by the first structuring unit, and, at a stage the second structured data is generated by the second structuring unit, redisplays the display screen by using the second structured data.
According to such configuration, a well laid-out page can be quickly displayed prior to the display of a display screen by proper structured data that includes script information. That is, it becomes possible to avoid the delay in the start of page display caused by the sequential nature of script processing and to quickly present sufficient amount of information to a user in a simple but somewhat easy-to-view format. Furthermore, with a simple page being replaced with a page having a layout that is actually intended by the author of the page, a user is enabled to browse a page that accurately reflects the proper layout. As a result, both the desire to quickly browse information of a page and the desire to browse information of a page based on a proper layout can be fulfilled. In many cases, the information that a user wants can be obtained from the simple page. However, a user tends to feel uncomfortable, wondering whether the user is enabled to browse all the pieces of information that are actually intended by the author. Such uncomfortable feeling can be alleviated by presenting to the user a page that accurately reflects the author's intention as with the configuration described above.
(Notes)
The data acquisition unit 110 is an example of the data prefetch unit. The temporary DOM creation unit 131 is an example of the first structuring unit. The complete DOM creation unit 132 is an example of the second structuring unit. The communication unit 150 is an example of a connection establishment unit. The node information storage unit 135 is an example of a display history storage unit. The proximity determination unit 170 is an example of an area calculation unit.
It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and alterations may occur depending on design requirements and other factors insofar as they are within the scope of the appended claims or the equivalents thereof.
The present application contains subject matter related to that disclosed in Japanese Priority Patent Application JP 2009-216284 filed in the Japan Patent Office on Sep. 17, 2009, the entire content of which is hereby incorporated by reference.
Number | Date | Country | Kind |
---|---|---|---|
P2009-216284 | Sep 2009 | JP | national |