You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Dan Klco (Jira)" <ji...@apache.org> on 2020/12/16 14:50:00 UTC

[jira] [Resolved] (SLING-9981) Remove jQuery dependency

     [ https://issues.apache.org/jira/browse/SLING-9981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Klco resolved SLING-9981.
-----------------------------
    Resolution: Fixed

> Remove jQuery dependency
> ------------------------
>
>                 Key: SLING-9981
>                 URL: https://issues.apache.org/jira/browse/SLING-9981
>             Project: Sling
>          Issue Type: Improvement
>    Affects Versions: Dynamic Include 3.2.0
>            Reporter: Prakashkumar SB
>            Priority: Major
>         Attachments: sling-org-apache-sling-dynamic-include.zip
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> When we use Javascript include (JSI) in Sling dynamic include with AEM, it is dependent on jQuery.
> Most of the websites will load the jQuery at the bottom of the page to enable first paint to appear through rendering the DOM elements.  Most of the cases, JSI will be enabled to load some HTML dynamically in the top/middle of the page. To make JSI work, jQuery have to be injected in the head instead footer/bottom of the page.
> Enabling jQuery in the head of the page will block the DOM to render, possible will have an impact on the SEO. To avoid this, update the jQuery scripts to vanilla javascript.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)