Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Bug: minify crashes when attempting to load a script more than once

#872

If we attempt to load the same script (local?) when minify is turned on, it'll crash the page.

The solution is to give a universal 'unique' identifier to each script so it's only loaded once per page. This MAY require breaking out the 'src' of a {script} block separate from the content code.

e.g., the flowplayer script has the unique id of 'flowplayer'

Reported by dleffler · January 22nd, 2013 @ 04:40 PM

State: resolved
Milestone: 2.2.1
Assigned to: dleffler dleffler

Activity

  1. expNinja
    expNinja
    • State changed from new to resolved

    (from [1b03b8f00c56d884136a31be95b03ce031069076]) Scrubs javascript array for duplicates prior to processing since it'll crash minify. [#872 Bug: minify crashes when attempting to load a script more than once state:resolved responsible:dleffler] https://github.com/exponentcms/exponent-cms/commit/1b03b8f00c56d884...

    May 31st, 2013 @ 06:37 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.