louisremi / jquery-smartresize Goto Github PK
View Code? Open in Web Editor NEWDebounced and Throttled Resize Events for jQuery
Home Page: http://louisremi.github.com/jquery-smartresize/demo/index.html
Debounced and Throttled Resize Events for jQuery
Home Page: http://louisremi.github.com/jquery-smartresize/demo/index.html
debounce event not firing when you change ipad orientation.
This event will fire on scroll when running iOS 8 and Safari. Does not fire in Chrome with iOS 8. Tested on iPad, iPad mini, iPhone.
We at VersionEye are working hard to keep up the quality of the bower's registry.
We just finished our initial analysis of the quality of the Bower.io registry:
7530 - registered packages, 224 of them doesnt exists anymore;
We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).
Sadly, your library louisremi/jquery-smartresize
is one of them.
Can you spare 15 minutes to help us to make Bower better?
Just add a new file bower.json
and change attributes.
{
"name": "louisremi/jquery-smartresize",
"version": "1.0.0",
"main": "path/to/main.css",
"description": "please add it",
"license": "Eclipse",
"ignore": [
".jshintrc",
"**/*.txt"
],
"dependencies": {
"<dependency_name>": "<semantic_version>",
"<dependency_name>": "<Local_folder>",
"<dependency_name>": "<package>"
},
"devDependencies": {
"<test-framework-name>": "<version>"
}
}
Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.
NB! Please validate your bower.json with jsonlint before commiting your updates.
Thank you!
Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!
First, let me just say thanks for this library. It's awesome.
It seems to be broken for me with jQuery 1.8. I only get a single throttledresize event instead of the expected 60fps. It works perfectly with 1.7.2.
There are no errors on the console. I just don't get the throttledresize event.
Hey there (continuing from Twitter),
This code has been brilliant! Nice.
I'm not much of a coder myself, but have used this script as part of a jQuery Accordion script (http://tympanus.net/Tutorials/FlexibleSlideToTopAccordion/). It was working perfectly at first, now I have this bug.
This is the site I used it on: http://www.elementalchile.cl/j_rdsn/
What happens is, when I click a tab (any tab at random), about 1/5 of the time, it only half opens. I've attached a screen grab below to show better. In the HTML/CSS, the height coming through is calculated wrong on the "st-open" class - the height is 133px. In order to recreate this error constantly, it's possible to resize the page width, and try another tab. It seems random as to when it'll happen, and can happen to any tag :-/
It would be massively appreciated if you can see why it is. Once we've fixed this, I can launch it!
Thanks very much for your time - its a big help
Jamie
I'm having trouble using the minimal standalone version with multiple instances. I'm no JS expert, so I'm probably missing something obvious. But if I do the following, all that gets logged is "second". How can I get both to work without having them within the same function call?
function on_resize(c,t){onresize=function(){clearTimeout(t);t=setTimeout(c,300)};return c};
on_resize(function(){
log('first');
});
on_resize(function(){
log('second');
});
Hello, just found out, that the setInterval is called once in jquery.throttledresize.js and clearInterval is never called. So the function is run every 30ms infinitely.
Before it was
$(dummy).animate(
...
$(dummy).stop();
...
);
and now the animate was changed into setInterval, so $(dummy).stop(); should be changed into clearInterval.
Hello,
we have just add jquery-smartresize twittstrap resources list
http://www.twittstrap.com/resources
Under javascript
Regards
After upgrading to jQuery 3 I', getting this error on the console:
Uncaught TypeError: Cannot read property 'apply' of undefined
I know that jQuery.event.handle() was removed from jQuery 1.9.1 but How can I handle this issue?
Hello your plug in is quite nice! I am using it in a project and I would like to make the visit website button appear only when there is an actual link on the href attribute. I have been trying but so far I can only make go away everything else but the "visit website button"
`
if(eldata.href == "#"){
//HERE IS WHERE THERE IS NO LINK AND WHERE I CANT REMOVE DE BUTTON
console.log("sin definir link");
this.$title.html( eldata.title );
this.$description.html( eldata.description );
this.$href.attr( 'href', eldata.href );
}else if(eldata.href != "#"){
console.log("LINK");
this.$title.html( eldata.title );
this.$description.html( eldata.description );
this.$href.attr( 'href', eldata.href );
}
Thanks before hand !
function on_resize(a,b){return onresize=function(){clearTimeout(b),b=setTimeout(a,100)},a}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.