Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Html libraries performance improvements #135

Open
wants to merge 6 commits into
base: staging
Choose a base branch
from

Conversation

andrepereiradasilva
Copy link
Owner

@andrepereiradasilva andrepereiradasilva commented Dec 30, 2018

Pull Request for Issue # .

Summary of Changes

Code review and performance optimizations/improvements in the following clases:

  • HTMLHelper
  • JHtmlBehaviour
  • JHtmlBootstrap
  • JHtmlJQuery
  • JHtmlFormBehaviour and chosen layout

More relevant notes:

  • Added detectBrowser - false in all HTMLHelper js scripts loading so there is not searchs for 4 files (8 in debug mode) for file for each all possible relative paths - that's a lot a lstat filesystem calls (particulary when open_basedir config is enabled - see https://bugs.php.net/bug.php?id=52312).
    The css files still have detect browser by default, but this should be removed as default.

  • corrected a bug in HTMLHelper::extract key generation

  • HTMLHelper::includeRelativeFiles was not changed since needs more work

Testing Instructions

Mainly code review and navigate around the site/admin to check if everything is fine.

Documentation Changes Required

None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant