Prakashkumar SB created SLING-9981:
--------------------------------------

             Summary: 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


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)

Reply via email to