0

When I create a demo to page load progress bar I am getting document.createDocumentFragment(); undefined in the jsFiddle

Jsfiddle link

 <h1>Gallery Progress Bar</h1>
 <div id="main"></div>
 <a href="#" id="loadMore">Load More</a>
B L Praveen
  • 1,812
  • 4
  • 35
  • 60

1 Answers1

0

You had your first function out of (function($){//your code})(jQuery);

I've put it inside but now I get "img not defined" error because it is undefined.

I suppose Your script should wait till the DOM is fully loaded in order to work properly.

This post can come in hand: Stackoverflow Post

Here is the fiddle: Fiddle

Community
  • 1
  • 1
Max Novich
  • 1,169
  • 9
  • 20