| CPC G06F 40/106 (2020.01) [G06F 40/14 (2020.01)] | 19 Claims |

|
1. An electronic device, comprising:
a memory, storing programming instructions; and
at least one processor,
wherein the programming instructions are executable by the at least one processor to cause the electronic device to:
upon detecting a request to execute an application, load a page of the application;
based on a display specification of the electronic device, determine whether to adjust a layout of a screen including output of the loaded page;
upon adjusting the layout of the screen, determine an additional content to be displayed in an extra space included in the adjusted layout of the screen; and
determine an output method by which the determined additional content is displayed in the extra space,
wherein determining the additional content to be displayed in the extra space comprises:
identifying levels and content types of objects included in the page, based on a document object model (DOM) structure of the page; and
determining the objects identified as having a same level and a same content type as the additional content.
|