Comments (4)
it might be the onLoad function of holder is running before the snippet is
loading. Looking at the documentation for holder.js it seems that you need
to run Holder.run() after the snippet is loaded.
CK
On Sat, May 31, 2014 at 12:38 PM, kostafey [email protected] wrote:
How can I use holder.js https://github.com/imsky/holder in html snippet?
It's impossible to simple use
![]()
(despite holder.js is loaded on target page).
—
Reply to this email directly or view it on GitHub
#95.
from enfocus.
It fails when loading /holder.js/128x128
inside compiled main.js
:
GET 404 Not Found text/html main.js:28516 Script
May be it should not try to load this resource and output it literally?
from enfocus.
Use data-src instead of src. Holder.js says it supports both.
Creighton
On May 31, 2014 1:00 PM, "kostafey" [email protected] wrote:
It fails when loading /holder.js/128x128 inside compiled main.js:
GET 404 Not Found text/html main.js:28516 Script
May be it should not try to load this resource and output it literally?
—
Reply to this email directly or view it on GitHub
#95 (comment).
from enfocus.
Thank you very much!
The solution is to use data-src
and run the following code after the snippet is rendered:
(.run js/Holder)
from enfocus.
Related Issues (20)
- Need escape content in ef/content or make other function that do correct html escaping.
- transform object DocumentFragment to string HOT 5
- event handler functions within hiccup-html HOT 2
- replace-vars broken in clojurescript 1.7.145 HOT 6
- Great project
- Extractor extract node HOT 1
- Clone-for and lists HOT 15
- Hiccup input control - checked and disabled not working HOT 2
- Requiring enfocus.macros under Clojure 1.10 and above triggers an error
- compiling fails at target/cljsbuild-compiler-0/enfocus/core.cljs HOT 4
- get-prop doesn't work on data attributes HOT 1
- listen-live looses event information HOT 6
- Multiple Extractions HOT 5
- Add optional callback for when view-binding function completed HOT 6
- debug should be set to false by default HOT 4
- (read-form) on IE8 results in [object]is not ISeqable HOT 7
- Difference in ef/content behaviour HOT 2
- clone-for issue "TypeError: enfocus.core.last_element_child is undefined" HOT 1
- Function based inline snippets HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enfocus.