Created
          December 19, 2015 15:20 
        
      - 
      
 - 
        
Save khalilovcmd/6193991d9fb0ad240351 to your computer and use it in GitHub Desktop.  
    to import lodash into chrome dev tools console 
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var el = document.createElement('script'); | |
| el.src = "https://raw.githubusercontent.com/lodash/lodash/3.10.1/lodash.min.js"; | |
| el.type = "text/javascript"; | |
| document.head.appendChild(el) | 
Pull it from a CDN that will give you the correct mime type. Mine works like this:
var el = document.createElement('script');
el.src = "https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.15.0/lodash.min.js";
el.type = "text/javascript";
document.head.appendChild(el);
    Pull it from a CDN - the same problem
Worked fine from the CDN for me using tmartensen's code example in Chrome Canary.
@Sheremetin try removing the "https:" from the URL and prefixing it with just "//"
The error is because of trying to inject the code to this page (gist.github.com) - tmartensen's code works fine on any new blank page.
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Any tips on this?