Skip to content

HTML/JS requests (was: Remove inline scripts to improve page rendering speed) #155

@blitux

Description

@blitux

Hi team,

Magento 1.x actually has a lot of inline scripts to enable dynamic behaviour on forms, validation, autocompletion, etc. This has a negative effect on page rendering speed because, as you know, web browsers stop page render when they parse javascript.

A common solution for this issue is to put all js code before the </body> tag, to enable the browser to render the whole page prior to executing javascript code and thus improving the perceived loading speed. But this is actually impossible because most inline scripts have dependencies and need prototype or some other scripts to run properly.

Also, I've seen prototype is still shipped with magento 2. It would be really nice to reduce to the minimum possible the javascript files to also improve download time.

OT: I also have another requests, but I don't know if you're working on it or if they have been planned, so I'm asking for an advice on where to leave those petitions.

Thank you for your time!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions