blueimp / Gallery

blueimp Gallery is a touch-enabled, responsive and customizable image & video gallery, carousel and lightbox, optimized for both mobile and desktop web browsers. It features swipe, mouse and keyboard navigation, transition effects, slideshow functionality, fullscreen support and on-demand content loading.
https://blueimp.github.io/Gallery/
Other
3.75k stars 984 forks source link

DevTool error #247

Closed ThibaultMagy closed 4 years ago

ThibaultMagy commented 4 years ago

Hi, I sometimes get this warning in console when I'm redirected to a page using bluimp-gallery's carousel

DevTools failed to load SourceMap: Could not load content for /root/path/blueimp-gallery.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE.

Does someone knows where it could come from ?

blueimp commented 4 years ago

Hi @ThibaultMagy,

you probably want to learn about source maps.

As soon as you open Dev Tools and the JavaScript source code references a source map, they will try to download it. The minified files of the Gallery contain a source map reference here: https://github.com/blueimp/Gallery/blob/80dbf50da012b0f697ec5ba623f55b2d43fab019/js/blueimp-gallery.min.js#L2

The project also includes the source map file, so all you need to do is copy it to the same location as Gallery JavaScript files: https://github.com/blueimp/Gallery/blob/master/js/blueimp-gallery.min.js.map

blueimp commented 4 years ago

Closing this as resolved, feel free to commend if there should be further questions.

blueimp commented 4 years ago

(deleted the email auto-reply, which was "Wij genieten van een vakantie! Dus het kan even duren voordat u een reactie ontvangt op uw mail.")