Magento Expert Forum - Improve your Magento experience

Results 1 to 2 of 2

How to defer parsing of JavaScript in Magento 2

  1. #1
    Junior Member James's Avatar
    Join Date
    Jan 2016
    Posts
    663
    Thanks
    2
    Thanked 13 Times in 12 Posts

    Default How to defer parsing of JavaScript in Magento 2

    Defer JavaScript means that JavaScript files loading will be delayed until parsing the page content finishes. Therefore, a browser loads all content before JavaScript files, which makes Magento sites perform faster than loading everything at the same time.

    Beside deferring JavaScript manually by changing codes, admin can install an extension also called Defer JavaScript for Magento 2 to improve site speed and enhance customer experience effectively.

    • Automatically defer parsing of JavaScript by delaying JavaScript loading till the last moment after all HTML and CSS files
    • Improve page speed score when testing with GTMetrix


    + After installing Defer JavaScript:

    Name:  Magento_2_defer_JavaScript_-_after_installing.PNG
Views: 79
Size:  13.3 KB

    + Before installing Defer JavaScript:

    Name:  Magento_2_defer_jajascript_-_before_installing.PNG
Views: 79
Size:  14.2 KB

    Check it out for FREE Installation - FREE 1-year Support and FREE Updates!

    View more threads in the same category:


  2. #2
    Junior Member
    Join Date
    Nov 2015
    Posts
    629
    Thanks
    6
    Thanked 33 Times in 33 Posts

    Default

    For Magento 1 website, there is also Defer JavaScript extension to install with the same functions:
    - Defer JavaScript loading until HTML and CSS loading is finished
    - Defer Iframes loading effectively
    - Improve site ranking on search engine

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •