Asynchronous element rendering for frontend interfaces of collaboration systems
AssigneeAtlassian Pty Ltd.
InventorsStanislav Sysoev, Fernando Bordallo
Life of this patent
Estimating the term…
Abstract
Embodiments relate to systems and methods for dynamically restructuring the element trees of user-editable Hypertext Markup Language (HTML) documents to facilitate asynchronous rendering of certain nodes of those pages via third-party rendering libraries which by design or function impose limitations on asynchronous rendering. Embodiments include a restructuring script that temporarily restructures nodes within the element tree, enabling asynchronous rendering. After rendering, the nodes are restored to their original positions within the document.
Claims20
A computer-implemented method for asynchronous rendering of hypertext markup language (HTML) elements with a rendering library configured for synchronous rendering, the method comprising:
- receiving, at a browser application instantiated by cooperation of a processor and memory of a client device communicably coupled to a host server, an HTML document received from a backend application instantiated by the host server, the HTML document referencing:
- a first script library defining functionality and style of at least one HTML element class;
- and
- a second script library defining functionality of a rich text editor section of the HTML document;
- determining that inner content of the rich text editor section comprises a set of HTML elements of the at least one HTML element class;
- creating a set of temporary ancestor nodes separate from the rich text editor section;
- removing the set of HTML elements from the rich text editor section and dividing the set of HTML elements among the set of temporary ancestor nodes;
- causing the first script library to asynchronously render each temporary ancestor node;
- receiving as output of the first script library a set of rendered HTML elements;
- inserting the set of rendered HTML elements into the rich text editor section;
- and
- rendering the HTML document at the browser application.
A computer-implemented method for parallel rendering of hypertext markup language (HTML) elements by a browser application, the method comprising:
- receiving, at the browser application, an HTML document referencing a third-party script library defining style of at least one HTML element class;
- determining that inner content of at least one section of the HTML document comprises a set of HTML elements of the at least one HTML element class that, based on position within an element tree of the HTML document, will render synchronously;
- creating a set of temporary ancestor nodes separate from the at least one section;
- extracting the set of HTML elements from the at least one section;
- dividing the set of HTML elements among the set of temporary ancestor nodes;
- providing the set of temporary ancestor nodes as input to the third-party script library to render each temporary ancestor node in parallel;
- receiving as output of the first script library a set of rendered HTML elements;
- inserting the set of rendered HTML elements into prior locations thereof within the at least one section;
- and
- discarding the set of temporary ancestor nodes and displaying the rendered HTML document.
A computer-implemented method for asynchronous rendering of hypertext markup language (HTML) elements with a rendering library configured for synchronous rendering, the method comprising:
- receiving, at a browser application instance, an HTML document received from a backend application instance;
- determining that inner content of a section of the HTML document comprises a set of HTML elements of at least one HTML element class that the rendering library will cause to be rendered synchronously;
- creating a set of temporary ancestor nodes separate from the section;
- removing the set of HTML elements from the section;
- distributing the set of HTML elements among the set of temporary ancestor nodes;
- providing the set of temporary ancestor nodes as input to the rendering library to asynchronously render each temporary ancestor node;
- receiving as output of therendering library a set of rendered HTML elements;
- and
- inserting the set of rendered HTML elements into respective original locations thereof.
Dependencies are inferred from the claim text.